Re: @property IBOutlet
Re: @property IBOutlet
- Subject: Re: @property IBOutlet
- From: William Squires <email@hidden>
- Date: Sat, 14 May 2011 01:10:33 -0500
On Apr 25, 2011, at 10:57 PM, koko wrote:
> Using this ;
>
> @property (nonatomic, retain) IBOutlet UIPickerView myPickerView;
>
> and
>
> @synthesize myPickerView;
>
>
> do I still need to connect the outlet in IB? My observation says yes but am I not understanding something?
>
> I.e. why define IBOutlet on the @property?
>
Stylistic. You can also put the "IBOutlet" on the declaration inside the @interface inside the curly braces, too. It's just a do-nothing replacement at compile time that IB looks at - code-wise it's like a macro replacement to an empty string (or, in the case of IBAction, to "void".)
> -koko
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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