Search code examples
xcode4

xcode 4 user interface item identifier


What is the new "User Interface Item Identifier" used for? I cannot seem to find any documentation on it.

I know the old "Label" was for IB use only. Is the new field the same thing?

enter image description here


Solution

  • Its a new protocol. Turns out, NSCell and NSView conform to the protocol. If I set the value in Xcode, then call

    NSLog(@"ident: %@", [myField identifier]); 
    

    it logs the string as expected. Yay! You must make the Base SDK in the build settings 10.7 though.