• 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
Need NSNumber setBoolValue for KVC Compliance workaround
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need NSNumber setBoolValue for KVC Compliance workaround


  • Subject: Need NSNumber setBoolValue for KVC Compliance workaround
  • From: David Carlisle <email@hidden>
  • Date: Tue, 27 May 2008 14:41:59 -0600

I want to put an NSMutableDictionary into my standardUserDefaults with keys and boolean values [NSNumber numberWithBool:YES/NO], then bind that to a table with keys and checkboxes in my preferences window. That all seems to work nicely, except that when I check one of the checkboxes I find that NSNumber needs a setBoolValue method to be KVC compliant.

So I need an object that is both property list compliant and KVC compliant for a BOOL value.

Is there a standard workaround somewhere?

_______________________________________________

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: Need NSNumber setBoolValue for KVC Compliance workaround
      • From: Ken Thomases <email@hidden>
    • Re: Need NSNumber setBoolValue for KVC Compliance workaround
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Alert Sheets hard wired in Interface Builder
  • Next by Date: Re: Okay I have those pieces… now where's the glue?
  • Previous by thread: Re: Alert Sheets hard wired in Interface Builder
  • Next by thread: Re: Need NSNumber setBoolValue for KVC Compliance workaround
  • Index(es):
    • Date
    • Thread