• 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: IBOutlet getter/setter pattern question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >IBOutlet getter/setter pattern question (From: Eeyore <email@hidden>)
 >Re: IBOutlet getter/setter pattern question (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSArrayController Selection and Managed Object Context Undo
  • Next by Date: Re: NSArrayController Update Delay
  • Previous by thread: Re: IBOutlet getter/setter pattern question
  • Next by thread: Re: IBOutlet getter/setter pattern question
  • Index(es):
    • Date
    • Thread