Re: Toplevel Objects in NIB files
Re: Toplevel Objects in NIB files
- Subject: Re: Toplevel Objects in NIB files
- From: Dustin Voss <email@hidden>
- Date: Sun, 15 Sep 2002 17:01:47 -0700
On Saturday, April 6, 2002, at 12:53 PM, Vince DeMarco wrote:
On Saturday, April 6, 2002, at 06:22 AM, Nat! wrote:
Am Freitag den, 5. April 2002, um 01:52, schrieb Vince DeMarco:
On Thursday, April 4, 2002, at 01:51 PM, Nat! wrote:
After the connections are made the connectors are all released. They
don'
t leak (or at least they should not leak)
Thanks to Greg and Vince for the info. I didn't fully comprehend that
the NIBConnector is a fairly ephemeral object.
Is this in all cases true though ? As I understand it associations
are also some kind of connector, and they don't and shouldn't
disappear after loading. Maybe I am on the completely wrong track
here. Maybe associations are stored somewhere else entirely ? Are
they "NSTopLevelObjects" ? Sorry I don't have acesss to nibtool at
the moment to verify that they are or aren't.
What do you mean by associations??? (the ones in EOF??? or
WebObjects???)
All connections in IB (outlets and actions) are done using connectors.
Apple Script Studio also uses connectors to do all of the things that
it does.
NSTopLevelObjects is basically what you see in the icon view in the IB
Document, What the document contains (its hierarchy) can be seen by
switching the document window in IB to outline mode
vince
Is it true what the docs say about having to release top-level objects
(in
file:///Developer/Documentation/Cocoa/TasksAndConcepts/
ProgrammingTopics/LoadingResources/index.html) when loading a NIB
manually?
What do they mean by top-level objects? They obviously can't mean
File's Owner and First Responder, even though they show up in nibtool's
hierarchy. What about a naked NSView object that my code puts somewhere
else in the view hierarchy? What about the Font Manager object? If I
don't connect it to an outlet, do I still need to free it? If so, how?
--
Dustin
_______________________________________________
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.