Documentation Archive Developer
Search

AddressBook Changes for Swift

AddressBook

NameDeclaration
FromABAddressBook
typealias ABAddressBookRef = ABAddressBook
ToABAddressBookRef
class ABAddressBookRef {
}

Modified ABGroupRef
Declaration
From
typealias ABGroupRef = ABGroup
To
class ABGroupRef {
}

NameDeclaration
FromABMultiValue
typealias ABMultiValueRef = ABMultiValue
ToABMultiValueRef
class ABMultiValueRef {
}

Declaration
From
typealias ABMutableMultiValueRef = ABMutableMultiValue
To
class ABMutableMultiValueRef {
}

Modified ABPersonRef
Declaration
From
typealias ABPersonRef = ABPerson
To
class ABPersonRef {
}

Declaration
From
typealias ABSearchElementRef = ABSearchElement
To
class ABSearchElementRef {
}

Declaration
From
func ABAddPropertiesAndTypes(_ addressBook: ABAddressBook!, _ recordType: CFString!, _ propertiesAndTypes: CFDictionary!) -> CFIndex
To
func ABAddPropertiesAndTypes(_ addressBook: ABAddressBookRef!, _ recordType: CFString!, _ propertiesAndTypes: CFDictionary!) -> CFIndex

Declaration
From
func ABAddRecord(_ addressBook: ABAddressBook!, _ record: ABRecordRef) -> Bool
To
func ABAddRecord(_ addressBook: ABAddressBookRef!, _ record: ABRecordRef) -> Bool

Declaration
From
func ABBeginLoadingImageDataForClient(_ person: ABPerson!, _ callback: ABImageClientCallback!, _ refcon: UnsafeMutablePointer<Void>) -> CFIndex
To
func ABBeginLoadingImageDataForClient(_ person: ABPersonRef!, _ callback: ABImageClientCallback!, _ refcon: UnsafeMutablePointer<Void>) -> CFIndex

Declaration
From
func ABCopyArrayOfAllGroups(_ addressBook: ABAddressBook!) -> Unmanaged<CFArray>!
To
func ABCopyArrayOfAllGroups(_ addressBook: ABAddressBookRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABCopyArrayOfAllPeople(_ addressBook: ABAddressBook!) -> Unmanaged<CFArray>!
To
func ABCopyArrayOfAllPeople(_ addressBook: ABAddressBookRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABCopyArrayOfMatchingRecords(_ addressBook: ABAddressBook!, _ search: ABSearchElement!) -> Unmanaged<CFArray>!
To
func ABCopyArrayOfMatchingRecords(_ addressBook: ABAddressBookRef!, _ search: ABSearchElementRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABCopyArrayOfPropertiesForRecordType(_ addressBook: ABAddressBook!, _ recordType: CFString!) -> Unmanaged<CFArray>!
To
func ABCopyArrayOfPropertiesForRecordType(_ addressBook: ABAddressBookRef!, _ recordType: CFString!) -> Unmanaged<CFArray>!

Declaration
From
func ABCopyDefaultCountryCode(_ addressBook: ABAddressBook!) -> Unmanaged<CFString>!
To
func ABCopyDefaultCountryCode(_ addressBook: ABAddressBookRef!) -> Unmanaged<CFString>!

Declaration
From
func ABCopyRecordForUniqueId(_ addressBook: ABAddressBook!, _ uniqueId: CFString!) -> ABRecordRef
To
func ABCopyRecordForUniqueId(_ addressBook: ABAddressBookRef!, _ uniqueId: CFString!) -> ABRecordRef

Declaration
From
func ABCopyRecordTypeFromUniqueId(_ addressBook: ABAddressBook!, _ uniqueId: CFString!) -> Unmanaged<CFString>!
To
func ABCopyRecordTypeFromUniqueId(_ addressBook: ABAddressBookRef!, _ uniqueId: CFString!) -> Unmanaged<CFString>!

Declaration
From
func ABCreateFormattedAddressFromDictionary(_ addressBook: ABAddressBook!, _ address: CFDictionary!) -> Unmanaged<CFString>!
To
func ABCreateFormattedAddressFromDictionary(_ addressBook: ABAddressBookRef!, _ address: CFDictionary!) -> Unmanaged<CFString>!

Declaration
From
func ABGetMe(_ addressBook: ABAddressBook!) -> Unmanaged<ABPerson>!
To
func ABGetMe(_ addressBook: ABAddressBookRef!) -> Unmanaged<ABPersonRef>!

Declaration
From
func ABGetSharedAddressBook() -> Unmanaged<ABAddressBook>!
To
func ABGetSharedAddressBook() -> Unmanaged<ABAddressBookRef>!

Declaration
From
func ABGroupAddGroup(_ group: ABGroup!, _ groupToAdd: ABGroup!) -> Bool
To
func ABGroupAddGroup(_ group: ABGroupRef!, _ groupToAdd: ABGroupRef!) -> Bool

Declaration
From
func ABGroupAddMember(_ group: ABGroup!, _ personToAdd: ABPerson!) -> Bool
To
func ABGroupAddMember(_ group: ABGroupRef!, _ personToAdd: ABPersonRef!) -> Bool

Declaration
From
func ABGroupCopyArrayOfAllMembers(_ group: ABGroup!) -> Unmanaged<CFArray>!
To
func ABGroupCopyArrayOfAllMembers(_ group: ABGroupRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABGroupCopyArrayOfAllSubgroups(_ group: ABGroup!) -> Unmanaged<CFArray>!
To
func ABGroupCopyArrayOfAllSubgroups(_ group: ABGroupRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABGroupCopyDistributionIdentifier(_ group: ABGroup!, _ person: ABPerson!, _ property: CFString!) -> Unmanaged<CFString>!
To
func ABGroupCopyDistributionIdentifier(_ group: ABGroupRef!, _ person: ABPersonRef!, _ property: CFString!) -> Unmanaged<CFString>!

Declaration
From
func ABGroupCopyParentGroups(_ group: ABGroup!) -> Unmanaged<CFArray>!
To
func ABGroupCopyParentGroups(_ group: ABGroupRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABGroupCreate() -> Unmanaged<ABGroup>!
To
func ABGroupCreate() -> Unmanaged<ABGroupRef>!

Declaration
From
func ABGroupCreateSearchElement(_ property: CFString!, _ label: CFString!, _ key: CFString!, _ value: AnyObject!, _ comparison: ABSearchComparison) -> Unmanaged<ABSearchElement>!
To
func ABGroupCreateSearchElement(_ property: CFString!, _ label: CFString!, _ key: CFString!, _ value: AnyObject!, _ comparison: ABSearchComparison) -> Unmanaged<ABSearchElementRef>!

Declaration
From
func ABGroupRemoveGroup(_ group: ABGroup!, _ groupToRemove: ABGroup!) -> Bool
To
func ABGroupRemoveGroup(_ group: ABGroupRef!, _ groupToRemove: ABGroupRef!) -> Bool

Declaration
From
func ABGroupRemoveMember(_ group: ABGroup!, _ personToRemove: ABPerson!) -> Bool
To
func ABGroupRemoveMember(_ group: ABGroupRef!, _ personToRemove: ABPersonRef!) -> Bool

Declaration
From
func ABGroupSetDistributionIdentifier(_ group: ABGroup!, _ person: ABPerson!, _ property: CFString!, _ identifier: CFString!) -> Bool
To
func ABGroupSetDistributionIdentifier(_ group: ABGroupRef!, _ person: ABPersonRef!, _ property: CFString!, _ identifier: CFString!) -> Bool

Declaration
From
func ABHasUnsavedChanges(_ addressBook: ABAddressBook!) -> Bool
To
func ABHasUnsavedChanges(_ addressBook: ABAddressBookRef!) -> Bool

Declaration
From
func ABMultiValueAdd(_ multiValue: ABMutableMultiValue!, _ value: AnyObject!, _ label: CFString!, _ outIdentifier: UnsafeMutablePointer<Unmanaged<CFString>?>) -> Bool
To
func ABMultiValueAdd(_ multiValue: ABMutableMultiValueRef!, _ value: AnyObject!, _ label: CFString!, _ outIdentifier: UnsafeMutablePointer<Unmanaged<CFString>?>) -> Bool

Declaration
From
func ABMultiValueCopyIdentifierAtIndex(_ multiValue: ABMultiValue!, _ index: CFIndex) -> Unmanaged<CFString>!
To
func ABMultiValueCopyIdentifierAtIndex(_ multiValue: ABMultiValueRef!, _ index: CFIndex) -> Unmanaged<CFString>!

Declaration
From
func ABMultiValueCopyLabelAtIndex(_ multiValue: ABMultiValue!, _ index: CFIndex) -> Unmanaged<CFString>!
To
func ABMultiValueCopyLabelAtIndex(_ multiValue: ABMultiValueRef!, _ index: CFIndex) -> Unmanaged<CFString>!

Declaration
From
func ABMultiValueCopyPrimaryIdentifier(_ multiValue: ABMultiValue!) -> Unmanaged<CFString>!
To
func ABMultiValueCopyPrimaryIdentifier(_ multiValue: ABMultiValueRef!) -> Unmanaged<CFString>!

Declaration
From
func ABMultiValueCopyValueAtIndex(_ multiValue: ABMultiValue!, _ index: CFIndex) -> Unmanaged<AnyObject>!
To
func ABMultiValueCopyValueAtIndex(_ multiValue: ABMultiValueRef!, _ index: CFIndex) -> Unmanaged<AnyObject>!

Declaration
From
func ABMultiValueCount(_ multiValue: ABMultiValue!) -> CFIndex
To
func ABMultiValueCount(_ multiValue: ABMultiValueRef!) -> CFIndex

Declaration
From
func ABMultiValueCreate() -> Unmanaged<ABMultiValue>!
To
func ABMultiValueCreate() -> Unmanaged<ABMultiValueRef>!

Declaration
From
func ABMultiValueCreateCopy(_ multiValue: ABMultiValue!) -> Unmanaged<ABMultiValue>!
To
func ABMultiValueCreateCopy(_ multiValue: ABMultiValueRef!) -> Unmanaged<ABMultiValueRef>!

Declaration
From
func ABMultiValueCreateMutable() -> Unmanaged<ABMutableMultiValue>!
To
func ABMultiValueCreateMutable() -> Unmanaged<ABMutableMultiValueRef>!

Declaration
From
func ABMultiValueCreateMutableCopy(_ multiValue: ABMultiValue!) -> Unmanaged<ABMutableMultiValue>!
To
func ABMultiValueCreateMutableCopy(_ multiValue: ABMultiValueRef!) -> Unmanaged<ABMutableMultiValueRef>!

Declaration
From
func ABMultiValueIndexForIdentifier(_ multiValue: ABMultiValue!, _ identifier: CFString!) -> CFIndex
To
func ABMultiValueIndexForIdentifier(_ multiValue: ABMultiValueRef!, _ identifier: CFString!) -> CFIndex

Declaration
From
func ABMultiValueInsert(_ multiValue: ABMutableMultiValue!, _ value: AnyObject!, _ label: CFString!, _ index: CFIndex, _ outIdentifier: UnsafeMutablePointer<Unmanaged<CFString>?>) -> Bool
To
func ABMultiValueInsert(_ multiValue: ABMutableMultiValueRef!, _ value: AnyObject!, _ label: CFString!, _ index: CFIndex, _ outIdentifier: UnsafeMutablePointer<Unmanaged<CFString>?>) -> Bool

Declaration
From
func ABMultiValuePropertyType(_ multiValue: ABMultiValue!) -> ABPropertyType
To
func ABMultiValuePropertyType(_ multiValue: ABMultiValueRef!) -> ABPropertyType

Declaration
From
func ABMultiValueRemove(_ multiValue: ABMutableMultiValue!, _ index: CFIndex) -> Bool
To
func ABMultiValueRemove(_ multiValue: ABMutableMultiValueRef!, _ index: CFIndex) -> Bool

Declaration
From
func ABMultiValueReplaceLabel(_ multiValue: ABMutableMultiValue!, _ label: CFString!, _ index: CFIndex) -> Bool
To
func ABMultiValueReplaceLabel(_ multiValue: ABMutableMultiValueRef!, _ label: CFString!, _ index: CFIndex) -> Bool

Declaration
From
func ABMultiValueReplaceValue(_ multiValue: ABMutableMultiValue!, _ value: AnyObject!, _ index: CFIndex) -> Bool
To
func ABMultiValueReplaceValue(_ multiValue: ABMutableMultiValueRef!, _ value: AnyObject!, _ index: CFIndex) -> Bool

Declaration
From
func ABMultiValueSetPrimaryIdentifier(_ multiValue: ABMutableMultiValue!, _ identifier: CFString!) -> Bool
To
func ABMultiValueSetPrimaryIdentifier(_ multiValue: ABMutableMultiValueRef!, _ identifier: CFString!) -> Bool

Declaration
From
func ABPersonCopyImageData(_ person: ABPerson!) -> Unmanaged<CFData>!
To
func ABPersonCopyImageData(_ person: ABPersonRef!) -> Unmanaged<CFData>!

Declaration
From
func ABPersonCopyParentGroups(_ person: ABPerson!) -> Unmanaged<CFArray>!
To
func ABPersonCopyParentGroups(_ person: ABPersonRef!) -> Unmanaged<CFArray>!

Declaration
From
func ABPersonCopyVCardRepresentation(_ person: ABPerson!) -> Unmanaged<CFData>!
To
func ABPersonCopyVCardRepresentation(_ person: ABPersonRef!) -> Unmanaged<CFData>!

Declaration
From
func ABPersonCreate() -> Unmanaged<ABPerson>!
To
func ABPersonCreate() -> Unmanaged<ABPersonRef>!

Declaration
From
func ABPersonCreateSearchElement(_ property: CFString!, _ label: CFString!, _ key: CFString!, _ value: AnyObject!, _ comparison: ABSearchComparison) -> Unmanaged<ABSearchElement>!
To
func ABPersonCreateSearchElement(_ property: CFString!, _ label: CFString!, _ key: CFString!, _ value: AnyObject!, _ comparison: ABSearchComparison) -> Unmanaged<ABSearchElementRef>!

Declaration
From
func ABPersonCreateWithVCardRepresentation(_ vCard: CFData!) -> Unmanaged<ABPerson>!
To
func ABPersonCreateWithVCardRepresentation(_ vCard: CFData!) -> Unmanaged<ABPersonRef>!

Declaration
From
func ABPersonSetImageData(_ person: ABPerson!, _ imageData: CFData!) -> Bool
To
func ABPersonSetImageData(_ person: ABPersonRef!, _ imageData: CFData!) -> Bool

Declaration
From
func ABRemoveProperties(_ addressBook: ABAddressBook!, _ recordType: CFString!, _ properties: CFArray!) -> CFIndex
To
func ABRemoveProperties(_ addressBook: ABAddressBookRef!, _ recordType: CFString!, _ properties: CFArray!) -> CFIndex

Declaration
From
func ABRemoveRecord(_ addressBook: ABAddressBook!, _ record: ABRecordRef) -> Bool
To
func ABRemoveRecord(_ addressBook: ABAddressBookRef!, _ record: ABRecordRef) -> Bool

Declaration
From
func ABSave(_ addressBook: ABAddressBook!) -> Bool
To
func ABSave(_ addressBook: ABAddressBookRef!) -> Bool

Declaration
From
func ABSearchElementCreateWithConjunction(_ conjunction: ABSearchConjunction, _ childrenSearchElement: CFArray!) -> Unmanaged<ABSearchElement>!
To
func ABSearchElementCreateWithConjunction(_ conjunction: ABSearchConjunction, _ childrenSearchElement: CFArray!) -> Unmanaged<ABSearchElementRef>!

Declaration
From
func ABSearchElementMatchesRecord(_ searchElement: ABSearchElement!, _ record: ABRecordRef) -> Bool
To
func ABSearchElementMatchesRecord(_ searchElement: ABSearchElementRef!, _ record: ABRecordRef) -> Bool

Declaration
From
func ABSetMe(_ addressBook: ABAddressBook!, _ moi: ABPerson!)
To
func ABSetMe(_ addressBook: ABAddressBookRef!, _ moi: ABPersonRef!)

Declaration
From
func ABTypeOfProperty(_ addressBook: ABAddressBook!, _ recordType: CFString!, _ property: CFString!) -> ABPropertyType
To
func ABTypeOfProperty(_ addressBook: ABAddressBookRef!, _ recordType: CFString!, _ property: CFString!) -> ABPropertyType