• 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
saving NSColors to NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

saving NSColors to NSUserDefaults


  • Subject: saving NSColors to NSUserDefaults
  • From: email@hidden
  • Date: Wed, 18 Jul 2001 12:27:50 -0400

is there any reason this would not work?

NSColor *text = [textColorWell color];
[[NSUserDefaults standardUserDefaults] setObject:text forKey:@"text_color"];

it seems to not like writing NSColors. if this is a problem, are they any workaround short of storing the red, green, blue, and alpha values separately?

thanks,
dan


  • Follow-Ups:
    • Re: saving NSColors to NSUserDefaults
      • From: Ali Ozer <email@hidden>
  • Prev by Date: [OT] 10.1
  • Next by Date: Re: My Several posts on dealloc/cleanup by framework - Summary & Thanks (was: Collection of Cocoa & objc etc.
  • Previous by thread: Re: [OT] 10.1
  • Next by thread: Re: saving NSColors to NSUserDefaults
  • Index(es):
    • Date
    • Thread