joels
joels

Reputation: 7741

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

Upvotes: 1

Views: 393

Answers (2)

BJ Homer
BJ Homer

Reputation: 49054

It's used as part of the Cocoa Autolayout feature, introduced in Lion.

Upvotes: 1

joels
joels

Reputation: 7741

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.

Upvotes: 2

Related Questions