Documentation Archive Developer
Search

CoreServices Changes for Swift

CoreServices

Modified CSIdentity
NameDeclaration
FromCSIdentityRef
typealias CSIdentityRef = CSIdentity
ToCSIdentity
class CSIdentity {
}

NameDeclaration
FromCSIdentityAuthorityRef
typealias CSIdentityAuthorityRef = CSIdentityAuthority
ToCSIdentityAuthority
class CSIdentityAuthority {
}

NameDeclaration
FromCSIdentityQueryRef
typealias CSIdentityQueryRef = CSIdentityQuery
ToCSIdentityQuery
class CSIdentityQuery {
}

Modified DCSDictionary
NameDeclaration
FromDCSDictionaryRef
typealias DCSDictionaryRef = DCSDictionary
ToDCSDictionary
class DCSDictionary {
}

Declaration
From
struct LSItemInfoRecord {
    var flags: LSItemInfoFlags
    var filetype: OSType
    var creator: OSType
    var `extension`: Unmanaged<CFString>!
    init()
    init(flags flags: LSItemInfoFlags, filetype filetype: OSType, creator creator: OSType, `extension` `extension`: Unmanaged<CFString>!)
}
To
struct LSItemInfoRecord {
    var flags: LSItemInfoFlags
    var filetype: OSType
    var creator: OSType
    var `extension`: Unmanaged<CFString>!
    init()
    init(flags flags: LSItemInfoFlags, filetype filetype: OSType, creator creator: OSType, extension extension: Unmanaged<CFString>!)
}

Declaration
From
init(flags flags: LSItemInfoFlags, filetype filetype: OSType, creator creator: OSType, `extension` `extension`: Unmanaged<CFString>!)
To
init(flags flags: LSItemInfoFlags, filetype filetype: OSType, creator creator: OSType, extension extension: Unmanaged<CFString>!)

NameDeclaration
FromLSSharedFileListRef
typealias LSSharedFileListRef = LSSharedFileList
ToLSSharedFileList
class LSSharedFileList {
}

NameDeclaration
FromLSSharedFileListItemRef
typealias LSSharedFileListItemRef = LSSharedFileListItem
ToLSSharedFileListItem
class LSSharedFileListItem {
}

Modified MDItem
NameDeclaration
FromMDItemRef
typealias MDItemRef = MDItem
ToMDItem
class MDItem {
}

Modified MDLabel
NameDeclaration
FromMDLabelRef
typealias MDLabelRef = MDLabel
ToMDLabel
class MDLabel {
}

Modified MDQuery
NameDeclaration
FromMDQueryRef
typealias MDQueryRef = MDQuery
ToMDQuery
class MDQuery {
}

Modified SKIndex
NameDeclaration
FromSKIndexRef
typealias SKIndexRef = SKIndex
ToSKIndex
class SKIndex {
}

NameDeclaration
FromSKIndexDocumentIteratorRef
typealias SKIndexDocumentIteratorRef = SKIndexDocumentIterator
ToSKIndexDocumentIterator
class SKIndexDocumentIterator {
}

Modified SKSearch
NameDeclaration
FromSKSearchRef
typealias SKSearchRef = SKSearch
ToSKSearch
class SKSearch {
}

Modified SKSearchGroup
NameDeclaration
FromSKSearchGroupRef
typealias SKSearchGroupRef = SKSearchGroup
ToSKSearchGroup
class SKSearchGroup {
}

NameDeclaration
FromSKSearchResultsRef
typealias SKSearchResultsRef = SKSearchResults
ToSKSearchResults
class SKSearchResults {
}

Modified SKSummary
NameDeclaration
FromSKSummaryRef
typealias SKSummaryRef = SKSummary
ToSKSummary
class SKSummary {
}

Declaration
From
func MDQuerySetCreateResultFunction(_ query: MDQuery!, _ `func`: MDQueryCreateResultFunction!, _ context: UnsafeMutablePointer<Void>, _ cb: UnsafePointer<CFArrayCallBacks>)
To
func MDQuerySetCreateResultFunction(_ query: MDQuery!, _ func: MDQueryCreateResultFunction!, _ context: UnsafeMutablePointer<Void>, _ cb: UnsafePointer<CFArrayCallBacks>)

Declaration
From
func MDQuerySetCreateValueFunction(_ query: MDQuery!, _ `func`: MDQueryCreateValueFunction!, _ context: UnsafeMutablePointer<Void>, _ cb: UnsafePointer<CFArrayCallBacks>)
To
func MDQuerySetCreateValueFunction(_ query: MDQuery!, _ func: MDQueryCreateValueFunction!, _ context: UnsafeMutablePointer<Void>, _ cb: UnsafePointer<CFArrayCallBacks>)

Modified SKDocument
Declaration
From
typealias SKDocumentRef = SKDocument
To
typealias SKDocument = CFTypeRef