Re: nsuserdefaults and bools.
Re: nsuserdefaults and bools.
- Subject: Re: nsuserdefaults and bools.
- From: Sherm Pendley <email@hidden>
- Date: Fri, 18 Apr 2003 23:04:43 -0400
On Friday, April 18, 2003, at 10:11 PM, Francisco Tolmasky wrote:
I know I can set a bool using setBool:forKey: in NSUserDefaults, but
when I register my defaults, how do I do this within the Dictionary I
pass in. In other words, how do I store the bool in my dictionary
Store it as a string - the docs for the boolForKey: method state that if
the value is upper- or lower-case YES, or if it responds to the intValue
message with a non-zero value, it is interpreted as true, and otherwise
it is interpreted as false.
sherm--
The highest sounds are hardest to hear.
Going forward is a way to retreat.
Great talent shows itself late in life.
Even a perfect program still has bugs.
-- The Tao of Programming
_______________________________________________
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.