Re: loadNibNamed:owner: Who disposes of the loaded objects?
Re: loadNibNamed:owner: Who disposes of the loaded objects?
- Subject: Re: loadNibNamed:owner: Who disposes of the loaded objects?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Thu, 25 Sep 2003 18:19:35 +0200
At 8:20 Uhr -0700 25.09.2003, Eric Friedman wrote:
The link is definitely on that page: here's the path I followed when
I found it: Cocoa
Documentation->AppKit->NSBundle_Additions->Loading Resources->What
happens when a nib file is loaded.
Weird. I was on that page, but I didn't notice that it had that
entry ... hmmm... thanks for setting me straight.
As far as I understand it, your "owner" needs to release the things
that are visible in the Interface Builder window that shows the
contents of your nib. (the one that has "File's owner" and "First
Responder" and to which you option drag connections for outlets and
such. You do not need to release every view that gets inserted
within those objects, just the "top" ones that appear in that IB
window.
Yes. That's how I understood it as well.
However, I was looking for a way to iterate over the top-level
objects in the NIB from code. That would save me the hassle of
remembering to add outlets for other top-level objects I add later.
Well, I guess that isn't possible...
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.