Re: IBOutlet getter/setter pattern question
Re: IBOutlet getter/setter pattern question
- Subject: Re: IBOutlet getter/setter pattern question
- From: Eeyore <email@hidden>
- Date: Mon, 17 Oct 2011 15:28:31 -0700
Thanks,
I guess the situation is that I really want a writeonly property. I don't ever need to read the outlet, I just want to do some adjustments when the property is first set (in this situation, when the nib is loaded).
The old style shouldn't look too weird. It is just using @synthesize to create the getter/setter along with all the UIViewController code necessary for memory management of an IBOutlet (which is what I'm trying to avoid both to reduce the amount of code and to reduce the number of retained pointers I need to keep track of).
Aaron
On Oct 17, 2011, at 2:56 PM, Jerry Krinock wrote:
> I don't quite understand your special situation. Both your "old" and "new" style accessors look weird. But the "new" is definitely better. Go for it.
>
> _______________________________________________
>
> 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
>
_______________________________________________
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