Re: NSToolbar Problem
Re: NSToolbar Problem
- Subject: Re: NSToolbar Problem
- From: Will Mason <email@hidden>
- Date: Fri, 1 Apr 2005 10:37:00 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
> /* don't have a clue */
> - (id)initWithCoder:(NSCoder *)coder {
> NSLog(@"Initing custom cell");
> [super initWithCoder:coder];
> _imageLeft = [coder decodeObjectForKey:@"kLeftImage"];
> _imageLeftPress = [coder decodeObjectForKey:@"kLeftImagePress"];
> _imageLeftRoll = [coder decodeObjectForKey:@"kLeftImageRoll"];
> return self;
> }
[NSCoder decodeObjectForKey:] returns an autoreleased object. These
objects, therefore, are getting cleaned up very shortly after creation.
You might try retaining them.
Will
_______________________________________________
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