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

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

Should be. Depending on what you mean by "store" -- I don't think CFDate is PList-safe. But I've never had trouble mixing & matching toll-free bridged types. Here's a line from my Spotlight importer:
CFDictionarySetValue(cfAttributes, kMDItemTextContent, (CFStringRef) theString);
where theString is an NSString*.
--


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.