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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to