• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: @property IBOutlet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Can't create temporary file
  • Next by Date: Re: Can't create temporary file
  • Previous by thread: Re: Can't create temporary file
  • Next by thread: Re: Properties vs Instance Variables
  • Index(es):
    • Date
    • Thread