Documentation Archive Developer
Search

CoreFoundation Changes for Objective-C

CoreFoundation

CFAvailability.h

Added #def CF_EXTENSIBLE_STRING_ENUM
Added #def CF_STRING_ENUM

CFBase.h

CFCalendar.h

Declaration
From
CFCalendarRef CFCalendarCreateWithIdentifier (
    CFAllocatorRef allocator,
    CFStringRef identifier
);
To
CFCalendarRef CFCalendarCreateWithIdentifier (
    CFAllocatorRef allocator,
    CFCalendarIdentifier identifier
);

Declaration
From
CFStringRef CFCalendarGetIdentifier (
    CFCalendarRef calendar
);
To
CFCalendarIdentifier CFCalendarGetIdentifier (
    CFCalendarRef calendar
);

CFDateFormatter.h

CFError.h

Declaration
From
CFErrorRef CFErrorCreate (
    CFAllocatorRef allocator,
    CFStringRef domain,
    CFIndex code,
    CFDictionaryRef userInfo
);
To
CFErrorRef CFErrorCreate (
    CFAllocatorRef allocator,
    CFErrorDomain domain,
    CFIndex code,
    CFDictionaryRef userInfo
);

Declaration
From
CFErrorRef CFErrorCreateWithUserInfoKeysAndValues (
    CFAllocatorRef allocator,
    CFStringRef domain,
    CFIndex code,
    const void *const *userInfoKeys,
    const void *const *userInfoValues,
    CFIndex numUserInfoValues
);
To
CFErrorRef CFErrorCreateWithUserInfoKeysAndValues (
    CFAllocatorRef allocator,
    CFErrorDomain domain,
    CFIndex code,
    const void *const *userInfoKeys,
    const void *const *userInfoValues,
    CFIndex numUserInfoValues
);

Declaration
From
CFStringRef CFErrorGetDomain (
    CFErrorRef err
);
To
CFErrorDomain CFErrorGetDomain (
    CFErrorRef err
);

CFLocale.h

Declaration
From
CFStringRef CFLocaleCopyDisplayNameForPropertyValue (
    CFLocaleRef displayLocale,
    CFStringRef key,
    CFStringRef value
);
To
CFStringRef CFLocaleCopyDisplayNameForPropertyValue (
    CFLocaleRef displayLocale,
    CFLocaleKey key,
    CFStringRef value
);

Declaration
From
CFLocaleRef CFLocaleCreate (
    CFAllocatorRef allocator,
    CFStringRef localeIdentifier
);
To
CFLocaleRef CFLocaleCreate (
    CFAllocatorRef allocator,
    CFLocaleIdentifier localeIdentifier
);

Declaration
From
CFStringRef CFLocaleCreateCanonicalLanguageIdentifierFromString (
    CFAllocatorRef allocator,
    CFStringRef localeIdentifier
);
To
CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString (
    CFAllocatorRef allocator,
    CFStringRef localeIdentifier
);

Declaration
From
CFStringRef CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes (
    CFAllocatorRef allocator,
    LangCode lcode,
    RegionCode rcode
);
To
CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes (
    CFAllocatorRef allocator,
    LangCode lcode,
    RegionCode rcode
);

Declaration
From
CFStringRef CFLocaleCreateCanonicalLocaleIdentifierFromString (
    CFAllocatorRef allocator,
    CFStringRef localeIdentifier
);
To
CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString (
    CFAllocatorRef allocator,
    CFStringRef localeIdentifier
);

Declaration
From
CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier (
    CFAllocatorRef allocator,
    CFStringRef localeID
);
To
CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier (
    CFAllocatorRef allocator,
    CFLocaleIdentifier localeID
);

Declaration
From
CFStringRef CFLocaleCreateLocaleIdentifierFromComponents (
    CFAllocatorRef allocator,
    CFDictionaryRef dictionary
);
To
CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents (
    CFAllocatorRef allocator,
    CFDictionaryRef dictionary
);

Declaration
From
CFStringRef CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode (
    CFAllocatorRef allocator,
    uint32_t lcid
);
To
CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode (
    CFAllocatorRef allocator,
    uint32_t lcid
);

Declaration
From
CFStringRef CFLocaleGetIdentifier (
    CFLocaleRef locale
);
To
CFLocaleIdentifier CFLocaleGetIdentifier (
    CFLocaleRef locale
);

Declaration
From
CFTypeRef CFLocaleGetValue (
    CFLocaleRef locale,
    CFStringRef key
);
To
CFTypeRef CFLocaleGetValue (
    CFLocaleRef locale,
    CFLocaleKey key
);

Declaration
From
uint32_t CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier (
    CFStringRef localeIdentifier
);
To
uint32_t CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier (
    CFLocaleIdentifier localeIdentifier
);

CFNotificationCenter.h

Declaration
From
void CFNotificationCenterPostNotification (
    CFNotificationCenterRef center,
    CFStringRef name,
    const void *object,
    CFDictionaryRef userInfo,
    Boolean deliverImmediately
);
To
void CFNotificationCenterPostNotification (
    CFNotificationCenterRef center,
    CFNotificationName name,
    const void *object,
    CFDictionaryRef userInfo,
    Boolean deliverImmediately
);

Declaration
From
void CFNotificationCenterPostNotificationWithOptions (
    CFNotificationCenterRef center,
    CFStringRef name,
    const void *object,
    CFDictionaryRef userInfo,
    CFOptionFlags options
);
To
void CFNotificationCenterPostNotificationWithOptions (
    CFNotificationCenterRef center,
    CFNotificationName name,
    const void *object,
    CFDictionaryRef userInfo,
    CFOptionFlags options
);

Declaration
From
void CFNotificationCenterRemoveObserver (
    CFNotificationCenterRef center,
    const void *observer,
    CFStringRef name,
    const void *object
);
To
void CFNotificationCenterRemoveObserver (
    CFNotificationCenterRef center,
    const void *observer,
    CFNotificationName name,
    const void *object
);

CFNumberFormatter.h

Declaration
From
CFTypeRef CFNumberFormatterCopyProperty (
    CFNumberFormatterRef formatter,
    CFStringRef key
);
To
CFTypeRef CFNumberFormatterCopyProperty (
    CFNumberFormatterRef formatter,
    CFNumberFormatterKey key
);

Declaration
From
void CFNumberFormatterSetProperty (
    CFNumberFormatterRef formatter,
    CFStringRef key,
    CFTypeRef value
);
To
void CFNumberFormatterSetProperty (
    CFNumberFormatterRef formatter,
    CFNumberFormatterKey key,
    CFTypeRef value
);

CFRunLoop.h

Declaration
From
void CFRunLoopAddCommonMode (
    CFRunLoopRef rl,
    CFStringRef mode
);
To
void CFRunLoopAddCommonMode (
    CFRunLoopRef rl,
    CFRunLoopMode mode
);

Declaration
From
void CFRunLoopAddObserver (
    CFRunLoopRef rl,
    CFRunLoopObserverRef observer,
    CFStringRef mode
);
To
void CFRunLoopAddObserver (
    CFRunLoopRef rl,
    CFRunLoopObserverRef observer,
    CFRunLoopMode mode
);

Declaration
From
void CFRunLoopAddSource (
    CFRunLoopRef rl,
    CFRunLoopSourceRef source,
    CFStringRef mode
);
To
void CFRunLoopAddSource (
    CFRunLoopRef rl,
    CFRunLoopSourceRef source,
    CFRunLoopMode mode
);

Declaration
From
void CFRunLoopAddTimer (
    CFRunLoopRef rl,
    CFRunLoopTimerRef timer,
    CFStringRef mode
);
To
void CFRunLoopAddTimer (
    CFRunLoopRef rl,
    CFRunLoopTimerRef timer,
    CFRunLoopMode mode
);

Declaration
From
Boolean CFRunLoopContainsObserver (
    CFRunLoopRef rl,
    CFRunLoopObserverRef observer,
    CFStringRef mode
);
To
Boolean CFRunLoopContainsObserver (
    CFRunLoopRef rl,
    CFRunLoopObserverRef observer,
    CFRunLoopMode mode
);

Declaration
From
Boolean CFRunLoopContainsSource (
    CFRunLoopRef rl,
    CFRunLoopSourceRef source,
    CFStringRef mode
);
To
Boolean CFRunLoopContainsSource (
    CFRunLoopRef rl,
    CFRunLoopSourceRef source,
    CFRunLoopMode mode
);

Declaration
From
Boolean CFRunLoopContainsTimer (
    CFRunLoopRef rl,
    CFRunLoopTimerRef timer,
    CFStringRef mode
);
To
Boolean CFRunLoopContainsTimer (
    CFRunLoopRef rl,
    CFRunLoopTimerRef timer,
    CFRunLoopMode mode
);

Declaration
From
CFStringRef CFRunLoopCopyCurrentMode (
    CFRunLoopRef rl
);
To
CFRunLoopMode CFRunLoopCopyCurrentMode (
    CFRunLoopRef rl
);

Declaration
From
CFAbsoluteTime CFRunLoopGetNextTimerFireDate (
    CFRunLoopRef rl,
    CFStringRef mode
);
To
CFAbsoluteTime CFRunLoopGetNextTimerFireDate (
    CFRunLoopRef rl,
    CFRunLoopMode mode
);

Declaration
From
void CFRunLoopRemoveObserver (
    CFRunLoopRef rl,
    CFRunLoopObserverRef observer,
    CFStringRef mode
);
To
void CFRunLoopRemoveObserver (
    CFRunLoopRef rl,
    CFRunLoopObserverRef observer,
    CFRunLoopMode mode
);

Declaration
From
void CFRunLoopRemoveSource (
    CFRunLoopRef rl,
    CFRunLoopSourceRef source,
    CFStringRef mode
);
To
void CFRunLoopRemoveSource (
    CFRunLoopRef rl,
    CFRunLoopSourceRef source,
    CFRunLoopMode mode
);

Declaration
From
void CFRunLoopRemoveTimer (
    CFRunLoopRef rl,
    CFRunLoopTimerRef timer,
    CFStringRef mode
);
To
void CFRunLoopRemoveTimer (
    CFRunLoopRef rl,
    CFRunLoopTimerRef timer,
    CFRunLoopMode mode
);

Declaration
From
CFRunLoopRunResult CFRunLoopRunInMode (
    CFStringRef mode,
    CFTimeInterval seconds,
    Boolean returnAfterSourceHandled
);
To
CFRunLoopRunResult CFRunLoopRunInMode (
    CFRunLoopMode mode,
    CFTimeInterval seconds,
    Boolean returnAfterSourceHandled
);

CFStream.h

Declaration
From
CFTypeRef CFReadStreamCopyProperty (
    CFReadStreamRef stream,
    CFStringRef propertyName
);
To
CFTypeRef CFReadStreamCopyProperty (
    CFReadStreamRef stream,
    CFStreamPropertyKey propertyName
);

Declaration
From
void CFReadStreamScheduleWithRunLoop (
    CFReadStreamRef stream,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFReadStreamScheduleWithRunLoop (
    CFReadStreamRef stream,
    CFRunLoopRef runLoop,
    CFRunLoopMode runLoopMode
);

Declaration
From
Boolean CFReadStreamSetProperty (
    CFReadStreamRef stream,
    CFStringRef propertyName,
    CFTypeRef propertyValue
);
To
Boolean CFReadStreamSetProperty (
    CFReadStreamRef stream,
    CFStreamPropertyKey propertyName,
    CFTypeRef propertyValue
);

Declaration
From
void CFReadStreamUnscheduleFromRunLoop (
    CFReadStreamRef stream,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFReadStreamUnscheduleFromRunLoop (
    CFReadStreamRef stream,
    CFRunLoopRef runLoop,
    CFRunLoopMode runLoopMode
);

Declaration
From
CFTypeRef CFWriteStreamCopyProperty (
    CFWriteStreamRef stream,
    CFStringRef propertyName
);
To
CFTypeRef CFWriteStreamCopyProperty (
    CFWriteStreamRef stream,
    CFStreamPropertyKey propertyName
);

Declaration
From
void CFWriteStreamScheduleWithRunLoop (
    CFWriteStreamRef stream,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFWriteStreamScheduleWithRunLoop (
    CFWriteStreamRef stream,
    CFRunLoopRef runLoop,
    CFRunLoopMode runLoopMode
);

Declaration
From
Boolean CFWriteStreamSetProperty (
    CFWriteStreamRef stream,
    CFStringRef propertyName,
    CFTypeRef propertyValue
);
To
Boolean CFWriteStreamSetProperty (
    CFWriteStreamRef stream,
    CFStreamPropertyKey propertyName,
    CFTypeRef propertyValue
);

Declaration
From
void CFWriteStreamUnscheduleFromRunLoop (
    CFWriteStreamRef stream,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFWriteStreamUnscheduleFromRunLoop (
    CFWriteStreamRef stream,
    CFRunLoopRef runLoop,
    CFRunLoopMode runLoopMode
);

CFURL.h