• 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: 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

  • Prev by Date: New Xcode projects have only 2 "pages" (or sections)?
  • Next by Date: Bug in Xcode4 gcc4.2 causes guile 2.0 build to fail
  • Previous by thread: Re: @property IBOutlet
  • Next by thread: failed doc searches in Xcode 4
  • Index(es):
    • Date
    • Thread