Re: Ownership of nib instances
Re: Ownership of nib instances
- Subject: Re: Ownership of nib instances
- From: Henri Lamiraux <email@hidden>
- Date: Wed, 17 Oct 2001 16:44:48 -0700
No it would not be. Instantiating a top level object in IB is exactly
like calling [[aClass alloc] init]. In this case it is initWithCoder
instead of simply init but the result it the same: an object is being
allocated and initialized and someone has to release it. The nib model
is perfectly consistent with the rest of Cocoa.
On Wednesday, October 17, 2001, at 05:26 PM, Ondra Cada wrote:
>
Actually, I guess it might be more consistent if loaded NIBs were
>
autoreleased. They are not, though, so we have to cope with that ;)
>
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple