Re: Ownership of nib instances
Re: Ownership of nib instances
- Subject: Re: Ownership of nib instances
- From: Ondra Cada <email@hidden>
- Date: Thu, 18 Oct 2001 00:26:21 +0100
Joe,
>
>>>>> Joe Chan (JC) wrote at Wed, 17 Oct 2001 17:10:55 -0400:
JC> When I make a new instance of a class in a Nib (not the file
JC> owner instance), who actually owns the object? In other words,
JC> who should release that object?
File Owner.
JC> It seems to me that the file
JC> owner object some how has a hidden reference to all those
JC> instances, and as the file owner goes away, so do those objects.
If the File Owner happens to be an NSWindowController, it really has some
kind of hidden reference to all those objects, and it truly releases them
when it is unallocated.
Though, if you use a different class for File Owner, you have to do that yourself.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc