Re: CFPreferences & NSArray*
Re: CFPreferences & NSArray*
- Subject: Re: CFPreferences & NSArray*
- From: Jim Correia <email@hidden>
- Date: Tue, 2 Mar 2004 07:03:55 -0500
On Mar 2, 2004, at 6:32 AM, Alessandro Volz wrote:
PLEASE :(( someone tell me why this code makes my app crash....
NSMutableArray *inner = [NSMutableArray arrayWithCapacity:0];
[inner addObject:[NSNumber numberWithBool:NO]];
[inner addObject:[NSNumber numberWithChar:'+']];
[inner addObject:[NSString stringWithString:@"Whatever"]];
[inner addObject:[NSNumber numberWithChar:13]];
[inner addObject:[NSColor redColor]];
NSColor is not a plist type. You'll have to put some other
representation in the preferences (such as an NSData which is the
result of encoding it with an NSArchiver.)
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.