Re: @property IBOutlet
Re: @property IBOutlet
- Subject: Re: @property IBOutlet
- From: Steven Woolgar <email@hidden>
- Date: Tue, 26 Apr 2011 13:53:33 -0700
On Tue, 26 Apr 2011 12:09:57 -0700 (PDT),
email@hidden 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?
As answered by someone else, tagging with IBOutlet simply allows for
connection in IB, not an automatic connection.
> I.e. why define IBOutlet on the @property?
Defining IBOutlet on the @property and not the ivar has a couple of
advantages.
1) If the ivar has a different name that the accessor defined by the
property, then accessor is the visible one in IB.
2) In 64 bit runtime without ivars, there is no other place to put the
IBOutlet tag.
W.
_______________________________________________
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