Re: Help with this crashing method

2008-11-09 Thread Andre Masse
Ahh! Thanks a lot guys. Now I can sleep :-) Have a good night, Andre Masse ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)list

Re: Help with this crashing method

2008-11-09 Thread Roland King
can you put NSImage's in preferences without wrapping them in NSData first? by the way - why do you use [ NSString stringWithString:string> ] instead of just using the string constant? Andre Masse wrote: Hi, I've been struggling with this method for the last couple of hours. I just can't s

Re: Help with this crashing method

2008-11-09 Thread Steven Riggs
You should try setObject:forKey: instead of registerDefaults: also... If you are using an array controller to handle the array in your user defaults, add your userDict object to the array controller instead of writing to defaults. Steven Riggs http://www.stevenriggs.com On Nov 10, 200

Re: Help with this crashing method

2008-11-09 Thread Bill Bumgarner
On Nov 9, 2008, at 9:03 PM, Andre Masse wrote: + (void) initialize { NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary]; NSMutableDictionary *userDict = [NSMutableDictionary dictionary]; [userDict setObject:[NSImage imageNamed:NSImageNameUser] f

Re: Help with this crashing method

2008-11-09 Thread mmalcolm crawford
On Nov 9, 2008, at 9:03 PM, Andre Masse wrote: [userDict setObject:[NSImage imageNamed:NSImageNameUser] forKey:@"userImage"]; "A default’s value must be a property list, that is, an instance of (or for collections a combination of instances of): NSData, NSString, NSNumber, NSDate, NSArr

Help with this crashing method

2008-11-09 Thread Andre Masse
Hi, I've been struggling with this method for the last couple of hours. I just can't see where the problem is. I get the following error which I suppose indicate that I've released something I shouldn't... Since I'm not releasing anything, I wonder what I'm doing wrong. Must be some stupi