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
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
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
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
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
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