Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Storing an NSCalendarDate in a CFMutableDictionaryRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Storing an NSCalendarDate in a CFMutableDictionaryRef




Is it safe to create a NSCalendarDate, cast it to a CFDate, and store it in a CFMutableDictionary that uses kCFTypeDictionaryValueCallbacks?


NSMutableDictionary is documented as being toll-free bridged with CFDictionary, NSDate is toll-free bridged with CFDate, and NSCalendarDate is a subclass of NSDate. Is this enough to allow me to store a NSCalendarDate in a CFMutableDictionary?

The reason this has come up is that I'm dealing with Sync Services from a Carbon app, and in order to push records to iCal I have to store dates in NSCalendarDate format, which doesn't seem to have a CF equivalent. If I can't store the NSCalendarDate in a CFDictionary, I'll have to backtrack and use a NSMutableDictionary instead.


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: 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 © 2011 Apple Inc. All rights reserved.