Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing an NSCalendarDate in a CFMutableDictionaryRef



Stuart

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.

Actually, this sounds like a bug in toll-free bridging -- CFDate and NSDate should be interchangeable (as specified in the documentation for both).


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?

I think that's part of the definition -- it wouldn't be interchangeable otherwise.
--


David Dunham     A Sharp, LLC
Voice/Fax: 206 783 7404     http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.