Skip navigation.
 
mlAdding self as Nib owner
FROM : Ian was here
DATE : Thu Jan 10 21:05:39 2008

I recently noticed that when I add an instance of my
object as the owner of a Nib, that it's retain count
jumps to two.


- (id)init
{
    if ( self = [super init] )
    {
        [NSBundle loadNibNamed:@"MyNib" owner:self];
    }

    return self;
}


I've Googled this and learned that when my instance
finally is deallocated, that the Nib file it owns is
not. Apparently, the top level objects on the Nib file
(NSWindow, NSMenu, etc...) need to be manually released?!


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Related mailsAuthorDate
mlAdding self as Nib owner Ian was here Jan 10, 21:05
mlRe: Adding self as Nib owner Keary Suska Jan 10, 21:23