Re: Interface Builder & Wiring Objects
Re: Interface Builder & Wiring Objects
- Subject: Re: Interface Builder & Wiring Objects
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 17 Nov 2008 15:06:49 -0800
On Nov 17, 2008, at 1:46 PM, Andy Lee wrote:
You don't have ivars "along with" outlets. An outlet *is* a
particular kind of ivar. It's an object reference that is declared
in such a way that IB recognizes it and allows you to assign its
value graphically in IB. Typically the declaration has the modifier
"IBOutlet" in front of it, as in:
@interface AppController : NSObject {
IBOutlet NSTextField *myTextField;
...
}
Going forward, you're encouraged to declare outlets as follows:
@interface AppController : NSObject {
NSTextField *myTextField;
...
}
@property (nonatomic, retain) IBOutlet NSTextField *myTextField;
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html
>
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden