Re: Outlet Initialization Uses Accessors
Re: Outlet Initialization Uses Accessors
- Subject: Re: Outlet Initialization Uses Accessors
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 20 Aug 2008 17:02:14 -0700
On Aug 20, 2008, at 8:09 AM, Gordon Apple wrote:
I just had a revelation I though I would share -- thanks to some
sample
code David Duncan sent me. When IB makes a connection, it calls the
outlet's accessor, if one is available. That fact can be used to
initialize
related items in your code. Ok, maybe everybody but me already knew
that,
but maybe a few don't know or just hadn't thought about it.
That's a legacy behavior that goes back to the days when NeXT was a
bit more strict about encapsulation and data hiding. It used to be
that nib instantiation could only set values if accessors were
available.
-jcr
_______________________________________________
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