Re: Toplevel Objects in NIB files
Re: Toplevel Objects in NIB files
- Subject: Re: Toplevel Objects in NIB files
- From: Graeme Hiebert <email@hidden>
- Date: Tue, 2 Apr 2002 21:49:55 -0800
On Tuesday, April 2, 2002, at 05:26 PM, Sherm Pendley wrote:
On Tuesday, April 2, 2002, at 07:32 PM, Nat! wrote:
I asked this before, but under a different subject line, so maybe it
didn't get any attention :)
What I would _really_ like to know is how NSWindowController learns to
know all top level objects in its associate NIBs. This is a trick I
would like to do myself sometimes.
After the NIB is loaded and the objects in it deserialized, for each
outlet, a corresponding set*: method is looked for in the NIB's owner,
and if it's found, called.
For example, if you've created and connected an outlet named "myButton"
in IB, the method "setMyButton:" will be called when the NIB is loaded,
with a pointer to the object loaded from the NIB.
That's all well and good, but what about the top-level objects that
aren't connected to any outlet?
-g
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.