Nib top-level object ownership?
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