Documentation Archive Developer
Search

CoreFoundation Changes for Swift

CoreFoundation

Modified CFAllocator
NameDeclaration
FromCFAllocatorRef
typealias CFAllocatorRef = CFAllocator
ToCFAllocator
class CFAllocator {
}

Modified CFArray
NameDeclaration
FromCFArrayRef
typealias CFArrayRef = CFArray
ToCFArray
class CFArray {
}

NameDeclaration
FromCFAttributedStringRef
typealias CFAttributedStringRef = CFAttributedString
ToCFAttributedString
class CFAttributedString {
}

Modified CFBag
NameDeclaration
FromCFBagRef
typealias CFBagRef = CFBag
ToCFBag
class CFBag {
}

Modified CFBinaryHeap
NameDeclaration
FromCFBinaryHeapRef
typealias CFBinaryHeapRef = CFBinaryHeap
ToCFBinaryHeap
class CFBinaryHeap {
}

Modified CFBitVector
NameDeclaration
FromCFBitVectorRef
typealias CFBitVectorRef = CFBitVector
ToCFBitVector
class CFBitVector {
}

Modified CFBoolean
NameDeclaration
FromCFBooleanRef
typealias CFBooleanRef = CFBoolean
ToCFBoolean
class CFBoolean {
}

Modified CFBundle
NameDeclaration
FromCFBundleRef
typealias CFBundleRef = CFBundle
ToCFBundle
class CFBundle {
}

Modified CFCalendar
NameDeclaration
FromCFCalendarRef
typealias CFCalendarRef = CFCalendar
ToCFCalendar
class CFCalendar {
}

NameDeclaration
FromCFCharacterSetRef
typealias CFCharacterSetRef = CFCharacterSet
ToCFCharacterSet
class CFCharacterSet {
}

Modified CFData
NameDeclaration
FromCFDataRef
typealias CFDataRef = CFData
ToCFData
class CFData {
}

Modified CFDate
NameDeclaration
FromCFDateRef
typealias CFDateRef = CFDate
ToCFDate
class CFDate {
}

NameDeclaration
FromCFDateFormatterRef
typealias CFDateFormatterRef = CFDateFormatter
ToCFDateFormatter
class CFDateFormatter {
}

Modified CFDictionary
NameDeclaration
FromCFDictionaryRef
typealias CFDictionaryRef = CFDictionary
ToCFDictionary
class CFDictionary {
}

Modified CFError
NameDeclarationProtocols
FromCFErrorRef
typealias CFErrorRef = CFError
--
ToCFError
class CFError {
}
extension CFError : ErrorType {
}
ErrorType

NameDeclaration
FromCFFileDescriptorRef
typealias CFFileDescriptorRef = CFFileDescriptor
ToCFFileDescriptor
class CFFileDescriptor {
}

NameDeclaration
FromCFFileSecurityRef
typealias CFFileSecurityRef = CFFileSecurity
ToCFFileSecurity
class CFFileSecurity {
}

Modified CFLocale
NameDeclaration
FromCFLocaleRef
typealias CFLocaleRef = CFLocale
ToCFLocale
class CFLocale {
}

Modified CFMachPort
NameDeclaration
FromCFMachPortRef
typealias CFMachPortRef = CFMachPort
ToCFMachPort
class CFMachPort {
}

Modified CFMessagePort
NameDeclaration
FromCFMessagePortRef
typealias CFMessagePortRef = CFMessagePort
ToCFMessagePort
class CFMessagePort {
}

NameDeclaration
FromCFMutableArrayRef
typealias CFMutableArrayRef = CFMutableArray
ToCFMutableArray
class CFMutableArray {
}

NameDeclaration
FromCFMutableAttributedStringRef
typealias CFMutableAttributedStringRef = CFMutableAttributedString
ToCFMutableAttributedString
class CFMutableAttributedString {
}

Modified CFMutableBag
NameDeclaration
FromCFMutableBagRef
typealias CFMutableBagRef = CFMutableBag
ToCFMutableBag
class CFMutableBag {
}

NameDeclaration
FromCFMutableBitVectorRef
typealias CFMutableBitVectorRef = CFMutableBitVector
ToCFMutableBitVector
class CFMutableBitVector {
}

NameDeclaration
FromCFMutableCharacterSetRef
typealias CFMutableCharacterSetRef = CFMutableCharacterSet
ToCFMutableCharacterSet
class CFMutableCharacterSet {
}

Modified CFMutableData
NameDeclaration
FromCFMutableDataRef
typealias CFMutableDataRef = CFMutableData
ToCFMutableData
class CFMutableData {
}

NameDeclaration
FromCFMutableDictionaryRef
typealias CFMutableDictionaryRef = CFMutableDictionary
ToCFMutableDictionary
class CFMutableDictionary {
}

Modified CFMutableSet
NameDeclaration
FromCFMutableSetRef
typealias CFMutableSetRef = CFMutableSet
ToCFMutableSet
class CFMutableSet {
}

NameDeclaration
FromCFMutableStringRef
typealias CFMutableStringRef = CFMutableString
ToCFMutableString
class CFMutableString {
}

NameDeclaration
FromCFNotificationCenterRef
typealias CFNotificationCenterRef = CFNotificationCenter
ToCFNotificationCenter
class CFNotificationCenter {
}

Modified CFNull
NameDeclaration
FromCFNullRef
typealias CFNullRef = CFNull
ToCFNull
class CFNull {
}

Modified CFNumber
NameDeclaration
FromCFNumberRef
typealias CFNumberRef = CFNumber
ToCFNumber
class CFNumber {
}

NameDeclaration
FromCFNumberFormatterRef
typealias CFNumberFormatterRef = CFNumberFormatter
ToCFNumberFormatter
class CFNumberFormatter {
}

Modified CFPlugIn
NameDeclaration
FromCFPlugInRef
typealias CFPlugInRef = CFPlugIn
ToCFPlugIn
class CFPlugIn {
}

NameDeclaration
FromCFPlugInInstanceRef
typealias CFPlugInInstanceRef = CFPlugInInstance
ToCFPlugInInstance
class CFPlugInInstance {
}

Modified CFReadStream
NameDeclaration
FromCFReadStreamRef
typealias CFReadStreamRef = CFReadStream
ToCFReadStream
class CFReadStream {
}

Modified CFRunLoop
NameDeclaration
FromCFRunLoopRef
typealias CFRunLoopRef = CFRunLoop
ToCFRunLoop
class CFRunLoop {
}

NameDeclaration
FromCFRunLoopObserverRef
typealias CFRunLoopObserverRef = CFRunLoopObserver
ToCFRunLoopObserver
class CFRunLoopObserver {
}

NameDeclaration
FromCFRunLoopSourceRef
typealias CFRunLoopSourceRef = CFRunLoopSource
ToCFRunLoopSource
class CFRunLoopSource {
}

NameDeclaration
FromCFRunLoopTimerRef
typealias CFRunLoopTimerRef = CFRunLoopTimer
ToCFRunLoopTimer
class CFRunLoopTimer {
}

Modified CFSet
NameDeclaration
FromCFSetRef
typealias CFSetRef = CFSet
ToCFSet
class CFSet {
}

Modified CFSocket
NameDeclaration
FromCFSocketRef
typealias CFSocketRef = CFSocket
ToCFSocket
class CFSocket {
}

Declaration
From
struct CFSocketSignature {
    var protocolFamily: Int32
    var socketType: Int32
    var `protocol`: Int32
    var address: Unmanaged<CFData>!
    init()
    init(protocolFamily protocolFamily: Int32, socketType socketType: Int32, `protocol` `protocol`: Int32, address address: Unmanaged<CFData>!)
}
To
struct CFSocketSignature {
    var protocolFamily: Int32
    var socketType: Int32
    var `protocol`: Int32
    var address: Unmanaged<CFData>!
    init()
    init(protocolFamily protocolFamily: Int32, socketType socketType: Int32, protocol protocol: Int32, address address: Unmanaged<CFData>!)
}

Declaration
From
init(protocolFamily protocolFamily: Int32, socketType socketType: Int32, `protocol` `protocol`: Int32, address address: Unmanaged<CFData>!)
To
init(protocolFamily protocolFamily: Int32, socketType socketType: Int32, protocol protocol: Int32, address address: Unmanaged<CFData>!)

Modified CFString
NameDeclaration
FromCFStringRef
typealias CFStringRef = CFString
ToCFString
class CFString {
}

NameDeclaration
FromCFStringTokenizerRef
typealias CFStringTokenizerRef = CFStringTokenizer
ToCFStringTokenizer
class CFStringTokenizer {
}

Modified CFTimeZone
NameDeclaration
FromCFTimeZoneRef
typealias CFTimeZoneRef = CFTimeZone
ToCFTimeZone
class CFTimeZone {
}

Modified CFTree
NameDeclaration
FromCFTreeRef
typealias CFTreeRef = CFTree
ToCFTree
class CFTree {
}

Modified CFURL
NameDeclaration
FromCFURLRef
typealias CFURLRef = CFURL
ToCFURL
class CFURL {
}

NameDeclaration
FromCFURLEnumeratorRef
typealias CFURLEnumeratorRef = CFURLEnumerator
ToCFURLEnumerator
class CFURLEnumerator {
}

NameDeclaration
FromCFUserNotificationRef
typealias CFUserNotificationRef = CFUserNotification
ToCFUserNotification
class CFUserNotification {
}

Modified CFUUID
NameDeclaration
FromCFUUIDRef
typealias CFUUIDRef = CFUUID
ToCFUUID
class CFUUID {
}

Modified CFWriteStream
NameDeclaration
FromCFWriteStreamRef
typealias CFWriteStreamRef = CFWriteStream
ToCFWriteStream
class CFWriteStream {
}

Modified CFXMLNode
NameDeclaration
FromCFXMLNodeRef
typealias CFXMLNodeRef = CFXMLNode
ToCFXMLNode
class CFXMLNode {
}

Modified CFXMLParser
NameDeclaration
FromCFXMLParserRef
typealias CFXMLParserRef = CFXMLParser
ToCFXMLParser
class CFXMLParser {
}

Declaration
From
func CFPlugInRegisterFactoryFunction(_ factoryUUID: CFUUID!, _ `func`: CFPlugInFactoryFunction!) -> Bool
To
func CFPlugInRegisterFactoryFunction(_ factoryUUID: CFUUID!, _ func: CFPlugInFactoryFunction!) -> Bool

Declaration
From
func CFSocketCreate(_ allocator: CFAllocator!, _ protocolFamily: Int32, _ socketType: Int32, _ `protocol`: Int32, _ callBackTypes: CFOptionFlags, _ callout: CFSocketCallBack!, _ context: UnsafePointer<CFSocketContext>) -> CFSocket!
To
func CFSocketCreate(_ allocator: CFAllocator!, _ protocolFamily: Int32, _ socketType: Int32, _ protocol: Int32, _ callBackTypes: CFOptionFlags, _ callout: CFSocketCallBack!, _ context: UnsafePointer<CFSocketContext>) -> CFSocket!

Declaration
From
func CFURLCreateCopyAppendingPathExtension(_ allocator: CFAllocator!, _ url: CFURL!, _ `extension`: CFString!) -> CFURL!
To
func CFURLCreateCopyAppendingPathExtension(_ allocator: CFAllocator!, _ url: CFURL!, _ extension: CFString!) -> CFURL!

Modified CFXMLTree
Declaration
From
typealias CFXMLTreeRef = CFXMLTree
To
typealias CFXMLTree = CFTreeRef