• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: weird user-default problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


References: 
 >weird user-default problem (From: Gore <email@hidden>)

  • Prev by Date: Re: anyObject
  • Next by Date: Re: anyObject
  • Previous by thread: Re: weird user-default problem
  • Next by thread: Fwd: anyObject
  • Index(es):
    • Date
    • Thread