Re: IBOutlet getter/setter pattern question

2011-10-20 Thread Matt Neuburg
On Tue, 18 Oct 2011 11:00:49 -0700, Eeyore eey...@monsterworks.com said: When I declare something as an IBOutlet, am I exposing it to others? IBOutlet is not a declaration in any meaningful sense. It's just a bit of internal fluff with Xcode; the compiler never sees it. It makes no difference

Re: IBOutlet getter/setter pattern question

2011-10-18 Thread Matt Neuburg
On Sun, 16 Oct 2011 13:53:05 -0700, Eeyore eey...@monsterworks.com said: I noticed that I many of my IBOutlets were only being used to modify the view from the viewDidLoad methods but which were not accessed later in my code. These outlets exist so that I can keep consistent appearance settings

Re: IBOutlet getter/setter pattern question

2011-10-18 Thread Eeyore
Thanks Matt, was kind of hoping you would provide some insight (your responses to others have been helpful). Very ingenious, but doesn't it leave a lot of stuff lying around that is just an accident waiting to happen? You are assuming that setLabel: will be called only by the nib-loading

Re: IBOutlet getter/setter pattern question

2011-10-17 Thread Jerry Krinock
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 (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: IBOutlet getter/setter pattern question

2011-10-17 Thread Eeyore
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

IBOutlet getter/setter pattern question

2011-10-16 Thread Eeyore
I noticed that I many of my IBOutlets were only being used to modify the view from the viewDidLoad methods but which were not accessed later in my code. These outlets exist so that I can keep consistent appearance settings in a large number of nibs without actually editing each nib. As a