Outlet in Cocoa is a persistent reference to a GUI control. For example, it is a common way to create the outlet to the text field and change the text in this field via the outlet. Now, in 64-bit Xcode, you add a property with IBOutlet keyword, synthesize it, and set new text via that property:
1. In interface declaration:
2. In the implementation section:
3. Set new text to the text field:
4. Get value:
1. In interface declaration:
@property (retain) IBOutlet NSTextField * text;
2. In the implementation section:
@synthesize text;
text.stringValue = @"Hello, World!";
4. Get value:
NSString* str = text.stringValue;
