On Jun 29, 2006, at 12:15 PM, stephen joseph butler wrote:
I'm curious, what does this code do?
if (CFGetTypeID( (CFTypeRef)aCalendarDate ) == CFDateGetTypeID())
NSLog( "it will work" );
else
NSLog( "it probably won't" );
I'd test myself, but I'm late to work.
I ran the test, and it prints "it will work". Which I'm happy to
say, it apparently does. I'm creating NSCalendarDates and storing
them in a CFMutableDictionary, and Sync Services seems perfectly
happy with them (where it was _not_ happy with a CFDate).
Score one for toll-free bridging. But can someone with a better
understanding of the internals tell me: is this always the case? In
other words, is it always safe to store subclasses of Objective-C
toll-free bridged types in a CF container?
Best wishes,
--Stuart A. Malone
Llamagraphics, Inc.
Makers of Life Balance personal coaching software
http://www.llamagraphics.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden