Re: if ([[NSUserDefaults preferences] check box]==true) ?
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.