• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: loadNibNamed:owner: Who disposes of the loaded objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: loadNibNamed:owner: Who disposes of the loaded objects?
      • From: Just van Rossum <email@hidden>
    • Re: loadNibNamed:owner: Who disposes of the loaded objects?
      • From: Eric Wang <email@hidden>
References: 
 >Re: loadNibNamed:owner: Who disposes of the loaded objects? (From: Eric Friedman <email@hidden>)

  • Prev by Date: Re: SetFrontProcess for Cocoa
  • Next by Date: Re: drawRect auto launch
  • Previous by thread: Re: loadNibNamed:owner: Who disposes of the loaded objects?
  • Next by thread: Re: loadNibNamed:owner: Who disposes of the loaded objects?
  • Index(es):
    • Date
    • Thread