Re: Toplevel Objects in NIB files
Re: Toplevel Objects in NIB files
- Subject: Re: Toplevel Objects in NIB files
- From: Greg Titus <email@hidden>
- Date: Thu, 4 Apr 2002 18:51:37 -0800
The NSNibConnectors are objects that represent outlet and action
connections between the objects in the nib. When the nib is loaded, all
of the connectors get invoked to actually set the outlets and actions on
the real unarchived objects, then the connectors are discarded.
So the connectors are already gone (or at least autoreleased) by the
time the -loadNibFile: method returns to you.
Hope this helps,
--Greg
On Thursday, April 4, 2002, at 01:51 PM, Nat! wrote:
Works nicely. Testing this I found that no "NSNibConnector" (and
subclasses) objects show up. As nibtool hints "Connectors" appear to be
stored outside the object hierarchy, so they probably are used in the
NIB loading process to wire things up [and then they are
"forgotten" (?)]
Is there another key like "NSConnectors" to get the connectors too ?
Looking with strings through AppKit I didn't find a likely candidate.
What I am also wondering is, who owns and releases the connectors? If
there is no "NSConnectors" key, the NSWindowController probably can't
do that. And the views can't either, because at best they know about
the connector as a delegate (and they don't retain/release the
delegate). The connectors themselves can't know when the views
"disappear". Is this a built in memory leak ?
Cheers
Nat!
------------------------------------------------------
Some people drink deep from the fountains of life, and
some just gargle. -- DLR
_______________________________________________
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.
_______________________________________________
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.