• 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
Colors and NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Colors and NSUserDefaults


  • Subject: Colors and NSUserDefaults
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 7 Jul 2002 12:41:34 +0100

I'm trying to put a colour value into my NSUserDefaults object. I tried using:

[prefs setObject:[myColorWell color] forKey:@"ColorSetting"];

which gives me a signal 10. There's nothing wrong with my prefs object; it puts other values into the .plist file perfectly well. Also, myColorWell performs its function in the application just fine, so there can't be a problem with that. The only other default setting methods are bool, float and integer, none of which are appropriate.
- Jeremy.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Colors and NSUserDefaults
      • From: Matt Judy <email@hidden>
    • Re: Colors and NSUserDefaults
      • From: Nathan Day <email@hidden>
  • Prev by Date: Re: Which dock menuitem did trigger the event?
  • Next by Date: Re: Preview in Internet Explorer
  • Previous by thread: Re: Which dock menuitem did trigger the event?
  • Next by thread: Re: Colors and NSUserDefaults
  • Index(es):
    • Date
    • Thread