• 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: if ([[NSUserDefaults preferences] check box]==true) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if ([[NSUserDefaults preferences] check box]==true) ?


  • Subject: Re: if ([[NSUserDefaults preferences] check box]==true) ?
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 9 Nov 2003 20:33:12 -0500

true.. however,if you want your defaults even more readable, you should also support getting a string back, either Yes, YES, yeS, YeS, etc... :-)


On Nov 8, 2003, at 9:45 PM, Wade Tregaskis wrote:

Remember that dictionaries associated objects (keys) with objects (values). 1, true and YES or not objects. You were closer with @"true", since that is an object, but as has been pointed out the standard mechanism for storing numbers (and thus booleans) is the NSNumber class.
_______________________________________________
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: if ([[NSUserDefaults preferences] check box]==true) ?
      • From: mmalcolm crawford <email@hidden>
References: 
 >Re: if ([[NSUserDefaults preferences] check box]==true) ? (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: NSArrayController population
  • Next by Date: Re: NSArrayController population
  • Previous by thread: Re: if ([[NSUserDefaults preferences] check box]==true) ?
  • Next by thread: Re: if ([[NSUserDefaults preferences] check box]==true) ?
  • Index(es):
    • Date
    • Thread