Type of Boolean attributes
Type of Boolean attributes
- Subject: Type of Boolean attributes
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 26 Nov 2002 16:20:07 -0500
In the attributes table in the preliminary reference documentation for
assistive apps, several attributes are described as having a value type of
"CFBoolean." Am I right in assuming this should be "CFBooleanRef"?
What is the recommended way to convert a CFBooleanRef value to a Cocoa
NSNumber object? This isn't discussed in the preliminary Carbon-Cocoa
Integration document, and I can't find it explained anywhere.
I ended up doing it like this. It works, but it seems awfully convoluted.
[NSNumber numberWithBool:(BOOL)CFBooleanGetValue((CFBooleanRef)value)]
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.