Platforms to show: All Mac Windows Linux Cross-Platform
/Cocoa/Addressbook/Addressbook Constants
Feedback.
Function:
You find this example project in your Plugins Download as a Realbasic project file within the examples folder: /Cocoa/Addressbook/Addressbook Constants
This example is the version from Wed, 2nd Mar 2010.
Notes: Last modified: Wed, 2nd Mar 2010
Feedback.
Function:
You find this example project in your Plugins Download as a Realbasic project file within the examples folder: /Cocoa/Addressbook/Addressbook Constants
This example is the version from Wed, 2nd Mar 2010.
Notes: Last modified: Wed, 2nd Mar 2010
Class Window1
Inherits Window
// Controls
ControlInstance
End ControlInstance
// Properties
Protected Dim a As ABAddressbookMBS
// Event implementations
Sub Open()
a=new ABAddressbookMBS
'Add str(a.kABEqual),"kABEqual"
'Add str(a.kABNotEqual),"kABNotEqual"
'Add str(a.kABLessThan),"kABLessThan"
'Add str(a.kABLessThanOrEqual),"kABLessThanOrEqual"
'Add str(a.kABGreaterThan),"kABGreaterThan"
'Add str(a.kABGreaterThanOrEqual),"kABGreaterThanOrEqual"
'Add str(a.kABEqualCaseInsensitive),"kABEqualCaseInsensitive"
'Add str(a.kABContainsSubString),"kABContainsSubString"
'Add str(a.kABContainsSubStringCaseInsensitive),"kABContainsSubStringCaseInsensitive"
'Add str(a.kABPrefixMatch),"kABPrefixMatch"
'Add str(a.kABPrefixMatchCaseInsensitive),"kABPrefixMatchCaseInsensitive"
Add a.kABUIDProperty,"kABUIDProperty"
Add a.kABCreationDateProperty,"kABCreationDateProperty" // Creation Date (when first saved) (date)
Add a.kABModificationDateProperty,"kABModificationDateProperty" // Last saved date (date)
Add a.kABFirstNameProperty,"kABFirstNameProperty" // First name (string)
Add a.kABLastNameProperty,"kABLastNameProperty" // Last name (string)
Add a.kABFirstNamePhoneticProperty,"kABFirstNamePhoneticProperty" // First name Phonetic (string)
Add a.kABLastNamePhoneticProperty,"kABLastNamePhoneticProperty" // Last name Phonetic (string)
Add a.kABBirthdayProperty,"kABBirthdayProperty" // Birth date (date)
Add a.kABOrganizationProperty,"kABOrganizationProperty" // Company name (string)
Add a.kABJobTitleProperty,"kABJobTitleProperty" // Job Title (string)
Add a.kABHomePageProperty,"kABHomePageProperty" // Home Web page (string)
Add a.kABEmailProperty,"kABEmailProperty" // Email(s) (multi-string)
Add a.kABEmailWorkLabel,"kABEmailWorkLabel" // Home email
Add a.kABEmailHomeLabel,"kABEmailHomeLabel" // Work email
Add a.kABAddressProperty,"kABAddressProperty" // Street Addresses (multi-dictionary)
Add a.kABAddressStreetKey,"kABAddressStreetKey" // Street
Add a.kABAddressCityKey,"kABAddressCityKey" // City
Add a.kABAddressStateKey,"kABAddressStateKey" // State
Add a.kABAddressZIPKey,"kABAddressZIPKey" // Zip
Add a.kABAddressCountryKey,"kABAddressCountryKey" // Country
Add a.kABAddressCountryCodeKey,"kABAddressCountryCodeKey" // Country Code
Add a.kABAddressHomeLabel,"kABAddressHomeLabel" // Home Address
Add a.kABAddressWorkLabel,"kABAddressWorkLabel" // Work Address
Add a.kABPhoneProperty,"kABPhoneProperty" // Generic phone number (multi-string)
Add a.kABPhoneWorkLabel,"kABPhoneWorkLabel" // Work phone
Add a.kABPhoneHomeLabel,"kABPhoneHomeLabel" // Home phone
Add a.kABPhoneMobileLabel,"kABPhoneMobileLabel" // Cell phone
Add a.kABPhoneMainLabel,"kABPhoneMainLabel" // Main phone
Add a.kABPhoneHomeFAXLabel,"kABPhoneHomeFAXLabel" // FAX number
Add a.kABPhoneWorkFAXLabel,"kABPhoneWorkFAXLabel" // FAX number
Add a.kABPhonePagerLabel,"kABPhonePagerLabel" // Pager number
Add a.kABAIMInstantProperty,"kABAIMInstantProperty" // AIM Instant Messaging (multi-string)
Add a.kABAIMWorkLabel,"kABAIMWorkLabel"
Add a.kABAIMHomeLabel,"kABAIMHomeLabel"
Add a.kABJabberInstantProperty,"kABJabberInstantProperty" // Jabber Instant Messaging (multi-string)
Add a.kABJabberWorkLabel,"kABJabberWorkLabel"
Add a.kABJabberHomeLabel,"kABJabberHomeLabel"
Add a.kABMSNInstantProperty,"kABMSNInstantProperty" // MSN Instant Messaging (multi-string)
Add a.kABMSNWorkLabel,"kABMSNWorkLabel"
Add a.kABMSNHomeLabel,"kABMSNHomeLabel"
Add a.kABYahooInstantProperty,"kABYahooInstantProperty" // Yahoo Instant Messaging (multi-string)
Add a.kABYahooWorkLabel,"kABYahooWorkLabel"
Add a.kABYahooHomeLabel,"kABYahooHomeLabel"
Add a.kABICQInstantProperty,"kABICQInstantProperty" // ICQ Instant Messaging (multi-string)
Add a.kABICQWorkLabel,"kABICQWorkLabel"
Add a.kABICQHomeLabel,"kABICQHomeLabel"
Add a.kABNoteProperty,"kABNoteProperty" // Note (string)
Add a.kABGroupNameProperty,"kABGroupNameProperty" // Name of the group
Add a.kABWorkLabel,"kABWorkLabel"
Add a.kABHomeLabel,"kABHomeLabel"
Add a.kABOtherLabel,"kABOtherLabel"
Add a.kABMiddleNameProperty,"kABMiddleNameProperty"
Add a.kABMiddleNamePhoneticProperty,"kABMiddleNamePhoneticProperty"
Add a.kABTitleProperty,"kABTitleProperty"
Add a.kABSuffixProperty,"kABSuffixProperty"
Add a.kABNicknameProperty,"kABNicknameProperty"
Add a.kABMaidenNameProperty,"kABMaidenNameProperty"
Add a.kABURLsProperty,"kABURLsProperty"
Add a.kABHomePageLabel,"kABHomePageLabel"
Add a.kABOtherDatesProperty, "kABOtherDatesProperty"
Add a.kABAnniversaryLabel, "kABAnniversaryLabel"
Add a.kABRelatedNamesProperty, "kABRelatedNamesProperty"
Add a.kABFatherLabel, "kABFatherLabel"
Add a.kABMotherLabel, "kABMotherLabel"
Add a.kABParentLabel, "kABParentLabel"
Add a.kABBrotherLabel, "kABBrotherLabel"
Add a.kABSisterLabel, "kABSisterLabel"
Add a.kABChildLabel, "kABChildLabel"
Add a.kABFriendLabel, "kABFriendLabel"
Add a.kABSpouseLabel, "kABSpouseLabel"
Add a.kABPartnerLabel, "kABPartnerLabel"
Add a.kABAssistantLabel, "kABAssistantLabel"
Add a.kABManagerLabel, "kABManagerLabel"
Add a.kABDepartmentProperty, "kABDepartmentProperty"
Add a.kABPersonFlags, "kABPersonFlags"
End Sub
// Methods
Protected Sub Add(value as string,text as string)
ListBox1.AddRow text
ListBox1.Cell(ListBox1.LastIndex,1)=value
ListBox1.cell(ListBox1.LastIndex,2)=a.LocalizedPropertyOrLabel(value)
End Sub
End Class
Class App
Inherits Application
// Event implementations
Sub Open()
if TargetMachO=false then
MsgBox "This example needs a MachO target running on Mac OS X."
quit
end if
End Sub
End Class
See also:
Links
MBS REAL studio Plugins - Pfarrgemeinde Ministranten Nickenich