On Aug 24, 2008, at 7:33 PM, Chris Idou wrote:

How do I create a property in the user defaults of type boolean?

Internally it seems to use a NSCFBoolean which is an undocumented type. If I make the assumption it is the same as a CFBoolean, and overlooking the oddness of having to fall back to Carbon for such a fundamental thing, the documentation of CFBoolean doesn't seem to provide a documented method for creating one.

See
http://developer.apple.com/documentation/Cocoa/Conceptual/UserDefaults/Tasks/UsingDefaults.html#/ /apple_ref/doc/uid/20000719-97383

and
http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSUserDefaults/boolForKey:

--Nathan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to