Re: weird user-default problem
Re: weird user-default problem
- Subject: Re: weird user-default problem
- From: Diggory Laycock <email@hidden>
- Date: Thu, 31 Jan 2002 17:01:25 +0000
paraphrased from *that* book (cocoa programming for Mac OS X):
NSColor objects do not know how to write themselves out as XML - so you
have to convert them to NSData objects using
[NSArchiver archivedDataWithRootObject: yourNSColourInstanceHere];
On Thursday, January 31, 2002, at 04:05 PM, Gore wrote:
>
Code:
>
>
[[NSUserDefaults standardUserDefaults] setObject: myColor forKey: @"the
>
color"];
>
>
Problem:
>
>
myColor is a NSColor instance, somehow, when this line is run it crash,
>
why!?
>
_______________________________________________
>
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.
>
>
Diggory Laycock - MonkeyFood.com
Tel: +44 7050 124080
(07050 124080 from UK)