archive-de.com » DE » A » ACAPIO.DE

Total: 146

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    Home Programmierung XCode Extract File Name from Path XCode Extract filename from path To get the filename from a given NSString containing the path you can call lastPathComponent NSString fileName myPathString lastPathComponent And if you need the filename without extention

    Original URL path: http://www.acapio.de/Programmierung/XCode/Extract_File_Name_from_Path/index.html (2016-04-25)
    Open archived version from archive


  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    cursor positon of NSTextfield XCode Get cursor positon of NSTextfield Sometime you need the curor position of a NSTextfield e g to insert some text programmatically Therefor you can use the fieldEditor That s a single object of NSTextView for simple text editing needs To get the position of cursur you can write NSUInteger cursorPos myTextfield window fieldEditor YES forObject myTextfield selectedRange location Or if you programming inside a subclass

    Original URL path: http://www.acapio.de/Programmierung/XCode/Get_cursor_positon_of_NSTextfield/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    the app icon can be found by default in the dock You have now two possibilities Wether you terminate your app or you like to reopen the window by clicking on the icon in dock For last one implement the method applicationShouldHandleReopen to your DAAppDelegate file BOOL applicationShouldHandleReopen NSApplication theApplication hasVisibleWindows BOOL flag window makeKeyAndOrderFront self return YES It is also recommended that the window can be reopened by a

    Original URL path: http://www.acapio.de/Programmierung/XCode/How_to_reopen_a_cocoa_application_from_dock/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    insert some text in a NSTextfield at cursor position you have to use NSMutableString NSString myString Cats like to bath NSString subString don t NSMutableString txt NSMutableString stringWithString myString txt insertString subString atIndex 5 NSLog txt In conjunction with NSTextfield the following code example can be used NSString mySubString don t getting cursor position of NSTextfield where to insert substring characters NSUInteger cursorPos myTextfield window fieldEditor YES forObject myTextfield selectedRange

    Original URL path: http://www.acapio.de/Programmierung/XCode/Insert_substring_in_NSString/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    JavaScript Impressum Home Programmierung XCode NSLog Debugging with NSLog Get output to console Logging messages to console are very helpful in processing and debugging your app Here is a short reminder for using that easy method NSLog NSLog NSString format For printing only a text to console you can write NSLog my text To print a number you can use format specifier int myNumber 20 NSString myText cats NSLog I

    Original URL path: http://www.acapio.de/Programmierung/XCode/NSLog/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    QT XCode Webseiten HTML Server JavaScript Impressum Home Programmierung XCode NSMutableArray change object at index XCode NSMutableArray change object at index It happens very often that I m searching long time for the suitable method and when I see it it s quite obvious But don t doubt your skills To change or replace the object of a NSMutableArray at a certain index you simply use myMutableArray replaceObjectAtIndex myIndex withObject

    Original URL path: http://www.acapio.de/Programmierung/XCode/NSMutableArray_change_object_at_index/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    we fill our PopUp Button with items and finally we set for every item a tag So we can identify every item by NSInteger later void fillPopUpBtnWithItems NSPopUpButton popupBtn popupBtn removeAllItems NSString firstItem Pixel popupBtn addItemWithTitle firstItem NSString secondItem Percent popupBtn addItemWithTitle secondItem popupBtn itemAtIndex 0 setTag 0 popupBtn itemAtIndex 1 setTag 1 If you have a lot of items and like to manage them in an array you can

    Original URL path: http://www.acapio.de/Programmierung/XCode/NSPopUpButton_-_Set_items_and_get_selected_item/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    NSTextfield an often needed to remove whitespaces and or new line characters The code below only removes whitespaces U 0020 and tab character U 0009 NSString string my text with whitespaces NSString trimmedString string stringByTrimmingCharactersInSet NSCharacterSet whitespaceCharacterSet NSCharacterSet is a group of characters mostly used for search operations If you like to remove whitespaces and new line characters code like this NSString trimmedString string stringByTrimmingCharactersInSet NSCharacterSet whitespaceAndNewlineCharacterSet There are a

    Original URL path: http://www.acapio.de/Programmierung/XCode/NSString_trim_whitespace/index.html (2016-04-25)
    Open archived version from archive



  •