Re: Enumerating outlets automatically?
Re: Enumerating outlets automatically?
- Subject: Re: Enumerating outlets automatically?
- From: "Michael Ash" <email@hidden>
- Date: Fri, 7 Nov 2008 00:09:52 -0500
On Thu, Nov 6, 2008 at 2:16 PM, Andy Lee <email@hidden> wrote:
> Ah, I see. When you said setFoo: I was thinking of the setEnabled: message
> that Graham wanted to send to all the objects, but you meant the
> setMyOutlet1:, setMyOutlet2:, etc. messages that are (we think) sent when
> the nib is loaded.
Yeah, I could have been clearer about that.
> It seems to me that all solutions other than trying to automatically figure
> out the outlets (and this includes Erik Buck's suggestion to add an array to
> the nib) are essentially variations on manually specifying the dictionary.
> Given that choice, I guess I'd prefer just... manually specifying the
> dictionary. It's very quick and transparent, and omissions are easier to
> spot than in IB.
Well, the whole point of my idea is that you don't have omissions. The
outlets you connect to the proxy are a replacement of the outlets you
connect in the controller, not an addition. You don't hook everything
up twice, you just connect them once to the proxy. The proxy then
connects everything to the controller too, but that's automatic. So
you have as much stuff to keep track of as you do originally, nothing
more.
Still, I agree that this is almost certainly overkill. It could be
useful in an extreme situation but at that point you're probably
already in a very bad spot.
(As an aside, your mail client is doing something strange when quoting
the message you're replying to, and that causes mine to treat every
piece of text as if you said it. Might be some kind of HTML mail
thing, not sure.)
Mike
_______________________________________________
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