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 18:19:55 +0100
Joe,
>
>>>>> Joe Chan (JC) wrote at Thu, 18 Oct 2001 10:15:38 -0400:
JC> But I thought we just agree on the fact that the file owners of
JC> all type release all the top level object anyways, so how is it
JC> special for window controllers?
Again: from application point of view, nothing special. From _YOUR_ POV
NSWindowController is special only in the sense that the releasing is already
implemented in the framework code and you don't have to implement it
yourself.
So:
- if you use an NSWindowController subclass, _you_ don't release NIB objects
(since inherited code does);
- if you use another class, _you_ release NIB objects (since inherited code
does not).
In each case, the controller releases them.
---
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