• 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
Nib top-level object ownership?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nib top-level object ownership?


  • Subject: Nib top-level object ownership?
  • From: Jim Correia <email@hidden>
  • Date: Fri, 30 Dec 2005 23:14:46 -0500

Back before NSNib, if you instantiated a nib and were not an NSWindowController subclass, you were responsible for making sure that all the top level objects were sent a release message.

Now that we have NSNib, if I use

-instantiateNibWithOwner:topLevelObjects:

to instantiate a nib, am I responsible for sending a release message to each object in the returned topLevelObjects array when I am done with the nib? It would appear so, since I have leaks without i, but the documentation doesn't explicitly state one way or the other, at least in the places I've looked :-)

Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Nib top-level object ownership?
      • From: Ricky Sharp <email@hidden>
    • Re: Nib top-level object ownership?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Re: Agent Applications and launchd
  • Next by Date: Re: Nib top-level object ownership?
  • Previous by thread: RE: Memory Management, A Working Example of My Question
  • Next by thread: Re: Nib top-level object ownership?
  • Index(es):
    • Date
    • Thread