Re: Header Differences
Re: Header Differences
- Subject: Re: Header Differences
- From: Ken Thomases <email@hidden>
- Date: Mon, 25 May 2009 00:47:59 -0500
On May 25, 2009, at 12:16 AM, Michael Ash wrote:
On Mon, May 25, 2009 at 12:51 AM, Chunk 1978 <email@hidden>
wrote:
is there a difference? which one should be used?
No difference. Use whatever makes you happy. IBOutlet is just a hint
to help Interface Builder parse your header. It literally does nothing
when the code is actually compiled: IBOutlet is #defined to nothing.
Apple's recommendation is to put the IBOutlet tag on the property
declaration:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmNibObjects.html#/
/apple_ref/doc/uid/TP40004998-SW1
Also, there can be a difference if the property name is different that
the ivar name.
Regards,
Ken
_______________________________________________
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