Re: weird user-default problem
Re: weird user-default problem
- Subject: Re: weird user-default problem
- From: Ondra Cada <email@hidden>
- Date: Thu, 31 Jan 2002 17:34:20 +0100
Gore,
>
>>>>> Gore (G) wrote at Thu, 31 Jan 2002 18:05:01 +0200:
G> [[NSUserDefaults standardUserDefaults] setObject: myColor forKey: @"the
G> color"];
G>
G> Problem:
G>
G> myColor is a NSColor instance, somehow, when this line is run it crash,
G> why!?
Defaults database can contain just plists, IIRC, and NSColor is definitely
not a plist. Encode it into a string or data (the latter can be done
transparently for almost any object via NSArchiver).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc