MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
ABAddressBookMBS class
class, Addressbook,
MBS Real Studio Cocoa Plugin
(ABAddressbook),
class ABAddressBookMBS,
Plugin version: 7.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The Addressbook class for Mac OS X 10.2 and newer.
Notes: All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
Plugin version: 7.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The Addressbook class for Mac OS X 10.2 and newer.
Notes: All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
- event DatabaseChanged(Externally as boolean, InsertedRecords() as string, UpdatedRecords() as string, DeletedRecords() as string)
- property Handle as Integer
- shared method ABAddressBookErrorDomain as string
- shared method ABMultiValueIdentifiersErrorKey as string
- method addRecord(record as ABRecordMBS) as boolean
- method addRecord(record as ABRecordMBS, byref error as NSErrorMBS) as boolean
- shared method addressBook as ABAddressBookMBS
- method defaultCountryCode as string
- method defaultNameOrdering as integer
- method EnableEvent
- method formattedAddressFromDictionary(address as Dictionary) as NSAttributedStringMBS
- shared method GotSharedAddressbook as boolean
- method groupForName(name as string) as ABGroupMBS
- method groupForUniqueId(uniqueid as string) as ABGroupMBS
- method groups as ABGroupMBS()
- method hasUnsavedChanges as boolean
- shared method kABAddressCityKey as string
- shared method kABAddressCountryCodeKey as string
- shared method kABAddressCountryKey as string
- shared method kABAddressHomeLabel as string
- shared method kABAddressProperty as string
- shared method kABAddressStateKey as string
- shared method kABAddressStreetKey as string
- shared method kABAddressWorkLabel as string
- shared method kABAddressZIPKey as string
- shared method kABAIMHomeLabel as string
- shared method kABAIMInstantProperty as string
- shared method kABAIMMobileMeLabel as string
- shared method kABAIMWorkLabel as string
- shared method kABAnniversaryLabel as string
- shared method kABAssistantLabel as string
- shared method kABBirthdayComponentsProperty as string
- shared method kABBirthdayProperty as string
- shared method kABBrotherLabel as string
- shared method kABCalendarURIsProperty as string
- shared method kABChildLabel as string
- shared method kABCreationDateProperty as string
- shared method kABDatabaseChangedExternallyNotification as string
- shared method kABDatabaseChangedNotification as string
- shared method kABDeletedRecords as string
- shared method kABDepartmentProperty as string
- shared method kABEmailHomeLabel as string
- shared method kABEmailMobileMeLabel as string
- shared method kABEmailProperty as string
- shared method kABEmailWorkLabel as string
- shared method kABFatherLabel as string
- shared method kABFirstNamePhoneticProperty as string
- shared method kABFirstNameProperty as string
- shared method kABFriendLabel as string
- shared method kABGroupNameProperty as string
- shared method kABHomeLabel as string
- shared method kABHomePageLabel as string
- shared method kABHomePageProperty as string
- shared method kABICQHomeLabel as string
- shared method kABICQInstantProperty as string
- shared method kABICQWorkLabel as string
- shared method kABInsertedRecords as string
- shared method kABInstantMessageProperty as string
- shared method kABInstantMessageServiceAIM as string
- shared method kABInstantMessageServiceFacebook as string
- shared method kABInstantMessageServiceGaduGadu as string
- shared method kABInstantMessageServiceGoogleTalk as string
- shared method kABInstantMessageServiceICQ as string
- shared method kABInstantMessageServiceJabber as string
- shared method kABInstantMessageServiceKey as string
- shared method kABInstantMessageServiceMSN as string
- shared method kABInstantMessageServiceQQ as string
- shared method kABInstantMessageServiceSkype as string
- shared method kABInstantMessageServiceYahoo as string
- shared method kABInstantMessageUsernameKey as string
- shared method kABJabberHomeLabel as string
- shared method kABJabberInstantProperty as string
- shared method kABJabberWorkLabel as string
- shared method kABJobTitleProperty as string
- shared method kABLastNamePhoneticProperty as string
- shared method kABLastNameProperty as string
- shared method kABMaidenNameProperty as string
- shared method kABManagerLabel as string
- shared method kABMiddleNamePhoneticProperty as string
- shared method kABMiddleNameProperty as string
- shared method kABMobileMeLabel as string
- shared method kABModificationDateProperty as string
- shared method kABMotherLabel as string
- shared method kABMSNHomeLabel as string
- shared method kABMSNInstantProperty as string
- shared method kABMSNWorkLabel as string
- shared method kABNicknameProperty as string
- shared method kABNoteProperty as string
- shared method kABOrganizationProperty as string
- shared method kABOtherDateComponentsProperty as string
- shared method kABOtherDatesProperty as string
- shared method kABOtherLabel as string
- shared method kABParentLabel as string
- shared method kABPartnerLabel as string
- shared method kABPersonFlags as string
- shared method kABPhoneHomeFAXLabel as string
- shared method kABPhoneHomeLabel as string
- shared method kABPhoneiPhoneLabel as string
- shared method kABPhoneMainLabel as string
- shared method kABPhoneMobileLabel as string
- shared method kABPhonePagerLabel as string
- shared method kABPhoneProperty as string
- shared method kABPhoneWorkFAXLabel as string
- shared method kABPhoneWorkLabel as string
- shared method kABRelatedNamesProperty as string
- shared method kABSisterLabel as string
- shared method kABSocialProfileProperty as string
- shared method kABSocialProfileServiceFacebook as string
- shared method kABSocialProfileServiceFlickr as string
- shared method kABSocialProfileServiceKey as string
- shared method kABSocialProfileServiceLinkedIn as string
- shared method kABSocialProfileServiceMySpace as string
- shared method kABSocialProfileServiceSinaWeibo as string
- shared method kABSocialProfileServiceTwitter as string
- shared method kABSocialProfileURLKey as string
- shared method kABSocialProfileUserIdentifierKey as string
- shared method kABSocialProfileUsernameKey as string
- shared method kABSpouseLabel as string
- shared method kABSuffixProperty as string
- shared method kABTitleProperty as string
- shared method kABUIDProperty as string
- shared method kABUpdatedRecords as string
- shared method kABURLsProperty as string
- shared method kABWorkLabel as string
- shared method kABYahooHomeLabel as string
- shared method kABYahooInstantProperty as string
- shared method kABYahooWorkLabel as string
- method LocalizedPropertyOrLabel(propertyOrLabel as string) as string
- method NewPersonWithVCardRepresentation(data as memoryblock) as ABPersonMBS
- method owner as ABPersonMBS
- method people as ABPersonMBS()
- method peopleForEmail(email as string) as ABPersonMBS()
- method personForUniqueId(uniqueid as string) as ABPersonMBS
- method recordClassFromUniqueId(uniqueid as string) as string
- method recordForUniqueId(uniqueid as string) as ABRecordMBS
- method recordsMatchingSearchElement(search as ABSearchElementMBS) as ABRecordMBS()
- method removeRecord(record as ABRecordMBS) as boolean
- method removeRecord(record as ABRecordMBS, byref error as NSErrorMBS) as boolean
- method save as boolean
- method save(byref error as NSErrorMBS) as boolean
- shared method searchElementForConjunction(conjunction as integer, children() as ABSearchElementMBS) as ABSearchElementMBS
- shared method searchElementForGroupProperty(PropertyName as string, Label as string, Key as string, value as variant, comparison as integer) as ABSearchElementMBS
- shared method searchElementForPersonProperty(PropertyName as string, Label as string, Key as string, value as variant, comparison as integer) as ABSearchElementMBS
- method setMe(moi as ABPersonMBS)
- shared method sharedAddressbook as ABAddressBookMBS
- shared method sharedAddressbookMT as ABAddressBookMBS
- const kABArrayProperty = 5
- const kABBitsInBitFieldMatch = 11
- const kABContainsSubString = 7
- const kABContainsSubStringCaseInsensitive = 8
- const kABDataProperty = 7
- const kABDateComponentsProperty = 8
- const kABDateProperty = 4
- const kABDefaultNameOrdering = 0
- const kABDictionaryProperty = 6
- const kABDoesNotContainSubString = 12
- const kABDoesNotContainSubStringCaseInsensitive = 13
- const kABEqual = 0
- const kABEqualCaseInsensitive = 6
- const kABErrorInProperty = 0
- const kABFirstNameFirst = &h40
- const kABGreaterThan = 4
- const kABGreaterThanOrEqual = 5
- const kABIntegerProperty = 2
- const kABLastNameFirst = &h20
- const kABLessThan = 2
- const kABLessThanOrEqual = 3
- const kABMultiArrayProperty = 261
- const kABMultiDataProperty = 263
- const kABMultiDateComponentsProperty = 264
- const kABMultiDateProperty = 260
- const kABMultiDictionaryProperty = 262
- const kABMultiIntegerProperty = 258
- const kABMultiRealProperty = 259
- const kABMultiStringProperty = 257
- const kABMultiValueMask = &h100
- const kABNameOrderingMask = &h70
- const kABNotEqual = 1
- const kABNotEqualCaseInsensitive = 14
- const kABNotWithinIntervalAroundToday = 19
- const kABNotWithinIntervalAroundTodayYearless = 20
- const kABNotWithinIntervalFromToday = 23
- const kABNotWithinIntervalFromTodayYearless = 24
- const kABPrefixMatch = 9
- const kABPrefixMatchCaseInsensitive = 10
- const kABRealProperty = 3
- const kABSearchAnd = 0
- const kABSearchOr = 1
- const kABShowAsCompany = 1
- const kABShowAsMask = 7
- const kABShowAsPerson = 0
- const kABShowAsResource = 2
- const kABShowAsRoom = 3
- const kABStringProperty = 1
- const kABSuffixMatch = 15
- const kABSuffixMatchCaseInsensitive = 16
- const kABWithinIntervalAroundToday = 17
- const kABWithinIntervalAroundTodayYearless = 18
- const kABWithinIntervalFromToday = 21
- const kABWithinIntervalFromTodayYearless = 22
Error codes.
| Constant | Value | Description |
|---|---|---|
| ABAddRecordsError | 1001 | |
| ABPropertyReadOnlyError | 1014 | |
| ABPropertyUnsupportedBySourceError | 1013 | |
| ABPropertyValueValidationError | 1012 | |
| ABRemoveRecordsError | 1002 |
This class has no sub classes.
Some methods using this class:
- ABGroupMBS.Constructor(addressBook as ABAddressBookMBS)
- ABPersonMBS.Constructor(addressBook as ABAddressBookMBS)
Some examples which use this class:
- /Cocoa/Addressbook/Add address to person
- /Cocoa/Addressbook/Add person
- /Cocoa/Addressbook/Add Vcard to Addressbook
- /Cocoa/Addressbook/Addressbook Constants
- /Cocoa/Addressbook/Addressbook Notifications
- /Cocoa/Addressbook/Addressbook Person View
- /Cocoa/Addressbook/Addressbook Pick one address
- /Cocoa/Addressbook/Addressbook Picker
- /Cocoa/Addressbook/Change my name
- /Cocoa/Addressbook/Easy search
- /Cocoa/Addressbook/Edit Distance values
- /Cocoa/Addressbook/Extract Vcard
- /Cocoa/Addressbook/Group members
- /Cocoa/Addressbook/List Addresses
- /Cocoa/Addressbook/List of People with images
- /Cocoa/Addressbook/Properties of ABPerson
- /Cocoa/Addressbook/Search Person
- /Cocoa/Addressbook/Show my entry
- /Leopard/Addressbook People Picker
- /Leopard/Cocoa Controls/Addressbook People Picker
- /Leopard/Cocoa Controls/PeoplePickerView
The items on this page are in the following plugins: MBS Real Studio Cocoa Plugin.
Links
Bilder aus Nickenich