Re: Accessing interface elements (iPhone vs Mac)
Re: Accessing interface elements (iPhone vs Mac)
- Subject: Re: Accessing interface elements (iPhone vs Mac)
- From: Dave DeLong <email@hidden>
- Date: Wed, 21 Jan 2009 11:33:40 -0700
On Jan 21, 2009, at 11:25 AM, Adam Venturella <email@hidden>
wrote:
I have seen this same behavior too, creating @properties for IBOutlets
on the iPhone. I have yet to run into a problem not
@property/@synthsizeing my Outlets on the iPhone, everything seems to
work just fine if you don't. So am I missing something? And am I
correct in assuming you would then be responsible for [myOutlet
release] in the dealloc?
My understanding is that declaring IBOotlets as properties is the
recommended way of doing things. If you look in template code, you'll
see that the outlets are released. This is to balance the retains sent
during nib loading.
So really, it helps clarify the memory management of GUI elements.
Dave
Sent from my iPod.
_______________________________________________
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