• 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
Store value of qc color picker in plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Store value of qc color picker in plist


  • Subject: Store value of qc color picker in plist
  • From: Jonathan Selander <email@hidden>
  • Date: Wed, 21 Jan 2009 10:31:55 +0100

I use a QCCompositionParameterView to manipulate values of my composition, and i want to store those values in a plist. It works fine for al strings and numbers, but storing a 'color' seems to be a bit more complicated.

This is the code i tried:

[standardUserDefaults setObject:[qcView valueForInputKey:@"keyColor"] forKey:@"keyColor"];

And it logs the following:

2009-01-21 10:30:18.982 Calibrator[36961:10b] *** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value 'NSCalibratedRGBColorSpace 1 0 0 1' of class 'NSCachedRGBColor'.

After this also comes the problem of reading the value into the color picker.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Store value of qc color picker in plist
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Binding of invisible controls: is lazy data loading possible?
  • Next by Date: Re: Getting iPod icon, was Getting the network Machine Icon
  • Previous by thread: Re: CALayer animating images
  • Next by thread: Re: Store value of qc color picker in plist
  • Index(es):
    • Date
    • Thread