pyobjc-framework-AddressBook 12.2__cp315-cp315t-macosx_10_15_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AddressBook/_AddressBook.cpython-315t-darwin.so +0 -0
- AddressBook/__init__.py +34 -0
- AddressBook/_metadata.py +498 -0
- pyobjc_framework_addressbook-12.2.dist-info/METADATA +72 -0
- pyobjc_framework_addressbook-12.2.dist-info/RECORD +9 -0
- pyobjc_framework_addressbook-12.2.dist-info/WHEEL +5 -0
- pyobjc_framework_addressbook-12.2.dist-info/licenses/LICENSE.txt +10 -0
- pyobjc_framework_addressbook-12.2.dist-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_addressbook-12.2.dist-info/top_level.txt +1 -0
|
Binary file
|
AddressBook/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the AddressBook framework.
|
|
3
|
+
|
|
4
|
+
This module does not contain docstrings for the wrapped code, check Apple's
|
|
5
|
+
documentation for details on how to use these functions and classes.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _setup():
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
import Foundation
|
|
13
|
+
import objc
|
|
14
|
+
from . import _metadata, _AddressBook
|
|
15
|
+
|
|
16
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
17
|
+
name="AddressBook",
|
|
18
|
+
frameworkIdentifier="com.apple.AddressBook.framework",
|
|
19
|
+
frameworkPath=objc.pathForFramework(
|
|
20
|
+
"/System/Library/Frameworks/AddressBook.framework"
|
|
21
|
+
),
|
|
22
|
+
globals_dict=globals(),
|
|
23
|
+
inline_list=None,
|
|
24
|
+
parents=(_AddressBook, Foundation),
|
|
25
|
+
metadict=_metadata.__dict__,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
globals()["__dir__"] = dir_func
|
|
29
|
+
globals()["__getattr__"] = getattr_func
|
|
30
|
+
|
|
31
|
+
del sys.modules["AddressBook._metadata"]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
globals().pop("_setup")()
|
AddressBook/_metadata.py
ADDED
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
# This file is generated by objective.metadata
|
|
2
|
+
#
|
|
3
|
+
# Last update: Tue May 26 19:34:51 2026
|
|
4
|
+
#
|
|
5
|
+
# flake8: noqa
|
|
6
|
+
|
|
7
|
+
import objc, sys
|
|
8
|
+
from typing import NewType
|
|
9
|
+
|
|
10
|
+
if sys.maxsize > 2**32:
|
|
11
|
+
|
|
12
|
+
def sel32or64(a, b):
|
|
13
|
+
return b
|
|
14
|
+
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
def sel32or64(a, b):
|
|
18
|
+
return a
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
if objc.arch == "arm64":
|
|
22
|
+
|
|
23
|
+
def selAorI(a, b):
|
|
24
|
+
return a
|
|
25
|
+
|
|
26
|
+
else:
|
|
27
|
+
|
|
28
|
+
def selAorI(a, b):
|
|
29
|
+
return b
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
misc = {}
|
|
33
|
+
constants = """$ABAddressBookErrorDomain$ABMultiValueIdentifiersErrorKey$ABPeoplePickerDisplayedPropertyDidChangeNotification$ABPeoplePickerGroupSelectionDidChangeNotification$ABPeoplePickerNameSelectionDidChangeNotification$ABPeoplePickerValueSelectionDidChangeNotification$kABAIMHomeLabel$kABAIMInstantProperty$kABAIMMobileMeLabel$kABAIMWorkLabel$kABAddressCityKey$kABAddressCountryCodeKey$kABAddressCountryKey$kABAddressHomeLabel$kABAddressProperty$kABAddressStateKey$kABAddressStreetKey$kABAddressWorkLabel$kABAddressZIPKey$kABAlternateBirthdayComponentsProperty$kABAnniversaryLabel$kABAssistantLabel$kABBirthdayComponentsProperty$kABBirthdayProperty$kABBrotherLabel$kABCalendarURIsProperty$kABChildLabel$kABCreationDateProperty$kABDatabaseChangedExternallyNotification$kABDatabaseChangedNotification$kABDeletedRecords$kABDepartmentProperty$kABEmailHomeLabel$kABEmailMobileMeLabel$kABEmailProperty$kABEmailWorkLabel$kABFatherLabel$kABFirstNamePhoneticProperty$kABFirstNameProperty$kABFriendLabel$kABGroupNameProperty$kABHomeLabel$kABHomePageLabel$kABHomePageProperty$kABICQHomeLabel$kABICQInstantProperty$kABICQWorkLabel$kABInsertedRecords$kABInstantMessageProperty$kABInstantMessageServiceAIM$kABInstantMessageServiceFacebook$kABInstantMessageServiceGaduGadu$kABInstantMessageServiceGoogleTalk$kABInstantMessageServiceICQ$kABInstantMessageServiceJabber$kABInstantMessageServiceKey$kABInstantMessageServiceMSN$kABInstantMessageServiceQQ$kABInstantMessageServiceSkype$kABInstantMessageServiceYahoo$kABInstantMessageUsernameKey$kABJabberHomeLabel$kABJabberInstantProperty$kABJabberWorkLabel$kABJobTitleProperty$kABLastNamePhoneticProperty$kABLastNameProperty$kABMSNHomeLabel$kABMSNInstantProperty$kABMSNWorkLabel$kABMaidenNameProperty$kABManagerLabel$kABMiddleNamePhoneticProperty$kABMiddleNameProperty$kABMobileMeLabel$kABModificationDateProperty$kABMotherLabel$kABNicknameProperty$kABNoteProperty$kABOrganizationPhoneticProperty$kABOrganizationProperty$kABOtherDateComponentsProperty$kABOtherDatesProperty$kABOtherLabel$kABParentLabel$kABPartnerLabel$kABPersonFlags$kABPhoneHomeFAXLabel$kABPhoneHomeLabel$kABPhoneMainLabel$kABPhoneMobileLabel$kABPhonePagerLabel$kABPhoneProperty$kABPhoneWorkFAXLabel$kABPhoneWorkLabel$kABPhoneiPhoneLabel$kABRelatedNamesProperty$kABSisterLabel$kABSocialProfileProperty$kABSocialProfileServiceFacebook$kABSocialProfileServiceFlickr$kABSocialProfileServiceKey$kABSocialProfileServiceLinkedIn$kABSocialProfileServiceMySpace$kABSocialProfileServiceSinaWeibo$kABSocialProfileServiceTencentWeibo$kABSocialProfileServiceTwitter$kABSocialProfileServiceYelp$kABSocialProfileURLKey$kABSocialProfileUserIdentifierKey$kABSocialProfileUsernameKey$kABSpouseLabel$kABSuffixProperty$kABTitleProperty$kABUIDProperty$kABURLsProperty$kABUpdatedRecords$kABWorkLabel$kABYahooHomeLabel$kABYahooInstantProperty$kABYahooWorkLabel$"""
|
|
34
|
+
enums = """$ABAddRecordsError@1001$ABMultipleValueSelection@2$ABNoValueSelection@0$ABPropertyReadOnlyError@1014$ABPropertyUnsupportedBySourceError@1013$ABPropertyValueValidationError@1012$ABRemoveRecordsError@1002$ABSingleValueSelection@1$kABArrayProperty@5$kABBitsInBitFieldMatch@11$kABContainsSubString@7$kABContainsSubStringCaseInsensitive@8$kABDataProperty@7$kABDateComponentsProperty@8$kABDateProperty@4$kABDefaultNameOrdering@0$kABDictionaryProperty@6$kABDoesNotContainSubString@12$kABDoesNotContainSubStringCaseInsensitive@13$kABEqual@0$kABEqualCaseInsensitive@6$kABErrorInProperty@0$kABFirstNameFirst@32$kABGreaterThan@4$kABGreaterThanOrEqual@5$kABIntegerProperty@2$kABLastNameFirst@16$kABLessThan@2$kABLessThanOrEqual@3$kABMultiArrayProperty@261$kABMultiDataProperty@263$kABMultiDateComponentsProperty@264$kABMultiDateProperty@260$kABMultiDictionaryProperty@262$kABMultiIntegerProperty@258$kABMultiRealProperty@259$kABMultiStringProperty@257$kABMultiValueMask@256$kABNameOrderingMask@56$kABNotEqual@1$kABNotEqualCaseInsensitive@14$kABNotWithinIntervalAroundToday@19$kABNotWithinIntervalAroundTodayYearless@20$kABNotWithinIntervalFromToday@23$kABNotWithinIntervalFromTodayYearless@24$kABPickerAllowGroupSelection@4$kABPickerAllowMultipleSelection@8$kABPickerMultipleValueSelection@2$kABPickerSingleValueSelection@1$kABPrefixMatch@9$kABPrefixMatchCaseInsensitive@10$kABRealProperty@3$kABSearchAnd@0$kABSearchOr@1$kABShowAsCompany@1$kABShowAsMask@7$kABShowAsPerson@0$kABShowAsResource@2$kABShowAsRoom@3$kABStringProperty@1$kABSuffixMatch@15$kABSuffixMatchCaseInsensitive@16$kABWithinIntervalAroundToday@17$kABWithinIntervalAroundTodayYearless@18$kABWithinIntervalFromToday@21$kABWithinIntervalFromTodayYearless@22$kEventABPeoplePickerDisplayedPropertyChanged@4$kEventABPeoplePickerGroupDoubleClicked@5$kEventABPeoplePickerGroupSelectionChanged@1$kEventABPeoplePickerNameDoubleClicked@6$kEventABPeoplePickerNameSelectionChanged@2$kEventABPeoplePickerValueSelectionChanged@3$kEventClassABPeoplePicker@1633841264$kEventParamABPickerRef@1633841264$"""
|
|
35
|
+
misc.update(
|
|
36
|
+
{
|
|
37
|
+
"_ABPropertyType": NewType("_ABPropertyType", int),
|
|
38
|
+
"_ABSearchComparison": NewType("_ABSearchComparison", int),
|
|
39
|
+
"ABPeoplePickerSelectionBehavior": NewType(
|
|
40
|
+
"ABPeoplePickerSelectionBehavior", int
|
|
41
|
+
),
|
|
42
|
+
"_ABSearchConjunction": NewType("_ABSearchConjunction", int),
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
misc.update({})
|
|
46
|
+
misc.update({})
|
|
47
|
+
functions = {
|
|
48
|
+
"ABMultiValueReplaceValue": (b"B^{__ABMultiValue=}@q",),
|
|
49
|
+
"ABPickerSetDelegate": (b"v^{OpaqueABPicker=}^{OpaqueHIObjectRef=}",),
|
|
50
|
+
"ABAddRecord": (b"B^{__ABAddressBookRef=}@",),
|
|
51
|
+
"ABPickerClearSearchField": (b"v^{OpaqueABPicker=}",),
|
|
52
|
+
"ABPickerSelectGroup": (b"v^{OpaqueABPicker=}^{__ABGroup=}B",),
|
|
53
|
+
"ABCopyDefaultCountryCode": (
|
|
54
|
+
b"^{__CFString=}^{__ABAddressBookRef=}",
|
|
55
|
+
"",
|
|
56
|
+
{"retval": {"already_cfretained": True}},
|
|
57
|
+
),
|
|
58
|
+
"ABPickerGetAttributes": (b"I^{OpaqueABPicker=}",),
|
|
59
|
+
"ABSave": (b"B^{__ABAddressBookRef=}",),
|
|
60
|
+
"ABPersonCreateWithVCardRepresentation": (
|
|
61
|
+
b"^{__ABPerson=}^{__CFData=}",
|
|
62
|
+
"",
|
|
63
|
+
{"retval": {"already_cfretained": True}},
|
|
64
|
+
),
|
|
65
|
+
"ABGroupAddMember": (b"B^{__ABGroup=}^{__ABPerson=}",),
|
|
66
|
+
"ABPersonCreateSearchElement": (
|
|
67
|
+
b"^{__ABSearchElementRef=}^{__CFString=}^{__CFString=}^{__CFString=}@q",
|
|
68
|
+
"",
|
|
69
|
+
{"retval": {"already_cfretained": True}},
|
|
70
|
+
),
|
|
71
|
+
"ABMultiValueRemove": (b"B^{__ABMultiValue=}q",),
|
|
72
|
+
"ABSearchElementMatchesRecord": (b"B^{__ABSearchElementRef=}@",),
|
|
73
|
+
"ABRecordCopyRecordType": (
|
|
74
|
+
b"^{__CFString=}@",
|
|
75
|
+
"",
|
|
76
|
+
{"retval": {"already_cfretained": True}},
|
|
77
|
+
),
|
|
78
|
+
"ABPickerSelectIdentifier": (b"v^{OpaqueABPicker=}^{__ABPerson=}^{__CFString=}B",),
|
|
79
|
+
"ABMultiValueCopyPrimaryIdentifier": (
|
|
80
|
+
b"^{__CFString=}^{__ABMultiValue=}",
|
|
81
|
+
"",
|
|
82
|
+
{"retval": {"already_cfretained": True}},
|
|
83
|
+
),
|
|
84
|
+
"ABMultiValueIndexForIdentifier": (b"q^{__ABMultiValue=}^{__CFString=}",),
|
|
85
|
+
"ABPickerSelectRecord": (b"v^{OpaqueABPicker=}@B",),
|
|
86
|
+
"ABMultiValueCreateMutableCopy": (
|
|
87
|
+
b"^{__ABMultiValue=}^{__ABMultiValue=}",
|
|
88
|
+
"",
|
|
89
|
+
{"retval": {"already_cfretained": True}},
|
|
90
|
+
),
|
|
91
|
+
"ABRecordRemoveValue": (b"B@^{__CFString=}",),
|
|
92
|
+
"ABPickerCopySelectedGroups": (
|
|
93
|
+
b"^{__CFArray=}^{OpaqueABPicker=}",
|
|
94
|
+
"",
|
|
95
|
+
{"retval": {"already_cfretained": True}},
|
|
96
|
+
),
|
|
97
|
+
"ABMultiValueCopyIdentifierAtIndex": (
|
|
98
|
+
b"^{__CFString=}^{__ABMultiValue=}q",
|
|
99
|
+
"",
|
|
100
|
+
{"retval": {"already_cfretained": True}},
|
|
101
|
+
),
|
|
102
|
+
"ABCancelLoadingImageDataForTag": (b"vq",),
|
|
103
|
+
"ABCopyArrayOfMatchingRecords": (
|
|
104
|
+
b"^{__CFArray=}^{__ABAddressBookRef=}^{__ABSearchElementRef=}",
|
|
105
|
+
"",
|
|
106
|
+
{"retval": {"already_cfretained": True}},
|
|
107
|
+
),
|
|
108
|
+
"ABPickerRemoveProperty": (b"v^{OpaqueABPicker=}^{__CFString=}",),
|
|
109
|
+
"ABMultiValueCount": (b"q^{__ABMultiValue=}",),
|
|
110
|
+
"ABPickerCopySelectedIdentifiers": (
|
|
111
|
+
b"^{__CFArray=}^{OpaqueABPicker=}^{__ABPerson=}",
|
|
112
|
+
"",
|
|
113
|
+
{"retval": {"already_cfretained": True}},
|
|
114
|
+
),
|
|
115
|
+
"ABGroupCreate": (b"^{__ABGroup=}", "", {"retval": {"already_cfretained": True}}),
|
|
116
|
+
"ABMultiValueCreateCopy": (
|
|
117
|
+
b"^{__ABMultiValue=}^{__ABMultiValue=}",
|
|
118
|
+
"",
|
|
119
|
+
{"retval": {"already_cfretained": True}},
|
|
120
|
+
),
|
|
121
|
+
"ABMultiValueAdd": (
|
|
122
|
+
b"B^{__ABMultiValue=}@^{__CFString=}^^{__CFString}",
|
|
123
|
+
"",
|
|
124
|
+
{"arguments": {3: {"type_modifier": "o"}}},
|
|
125
|
+
),
|
|
126
|
+
"ABHasUnsavedChanges": (b"B^{__ABAddressBookRef=}",),
|
|
127
|
+
"ABMultiValueReplaceLabel": (b"B^{__ABMultiValue=}^{__CFString=}q",),
|
|
128
|
+
"ABGroupCopyParentGroups": (
|
|
129
|
+
b"^{__CFArray=}^{__ABGroup=}",
|
|
130
|
+
"",
|
|
131
|
+
{"retval": {"already_cfretained": True}},
|
|
132
|
+
),
|
|
133
|
+
"ABGroupSetDistributionIdentifier": (
|
|
134
|
+
b"B^{__ABGroup=}^{__ABPerson=}^{__CFString=}^{__CFString=}",
|
|
135
|
+
),
|
|
136
|
+
"ABPickerDeselectRecord": (b"v^{OpaqueABPicker=}@",),
|
|
137
|
+
"ABGroupCreateSearchElement": (
|
|
138
|
+
b"^{__ABSearchElementRef=}^{__CFString=}^{__CFString=}^{__CFString=}@q",
|
|
139
|
+
"",
|
|
140
|
+
{"retval": {"already_cfretained": True}},
|
|
141
|
+
),
|
|
142
|
+
"ABCopyRecordTypeFromUniqueId": (
|
|
143
|
+
b"^{__CFString=}^{__ABAddressBookRef=}^{__CFString=}",
|
|
144
|
+
"",
|
|
145
|
+
{"retval": {"already_cfretained": True}},
|
|
146
|
+
),
|
|
147
|
+
"ABRemoveRecord": (b"B^{__ABAddressBookRef=}@",),
|
|
148
|
+
"ABGroupCopyDistributionIdentifier": (
|
|
149
|
+
b"^{__CFString=}^{__ABGroup=}^{__ABPerson=}^{__CFString=}",
|
|
150
|
+
"",
|
|
151
|
+
{"retval": {"already_cfretained": True}},
|
|
152
|
+
),
|
|
153
|
+
"ABPersonCopyImageData": (
|
|
154
|
+
b"^{__CFData=}^{__ABPerson=}",
|
|
155
|
+
"",
|
|
156
|
+
{"retval": {"already_cfretained": True}},
|
|
157
|
+
),
|
|
158
|
+
"ABPickerDeselectGroup": (b"v^{OpaqueABPicker=}^{__ABGroup=}",),
|
|
159
|
+
"ABGroupRemoveGroup": (b"B^{__ABGroup=}^{__ABGroup=}",),
|
|
160
|
+
"ABRemoveProperties": (b"q^{__ABAddressBookRef=}^{__CFString=}^{__CFArray=}",),
|
|
161
|
+
"ABGroupCopyArrayOfAllSubgroups": (
|
|
162
|
+
b"^{__CFArray=}^{__ABGroup=}",
|
|
163
|
+
"",
|
|
164
|
+
{"retval": {"already_cfretained": True}},
|
|
165
|
+
),
|
|
166
|
+
"ABMultiValueCreate": (
|
|
167
|
+
b"^{__ABMultiValue=}",
|
|
168
|
+
"",
|
|
169
|
+
{"retval": {"already_cfretained": True}},
|
|
170
|
+
),
|
|
171
|
+
"ABPickerSelectInAddressBook": (b"v^{OpaqueABPicker=}",),
|
|
172
|
+
"ABGroupCopyArrayOfAllMembers": (
|
|
173
|
+
b"^{__CFArray=}^{__ABGroup=}",
|
|
174
|
+
"",
|
|
175
|
+
{"retval": {"already_cfretained": True}},
|
|
176
|
+
),
|
|
177
|
+
"ABSearchElementCreateWithConjunction": (
|
|
178
|
+
b"^{__ABSearchElementRef=}q^{__CFArray=}",
|
|
179
|
+
"",
|
|
180
|
+
{"retval": {"already_cfretained": True}},
|
|
181
|
+
),
|
|
182
|
+
"ABMultiValueCopyValueAtIndex": (
|
|
183
|
+
b"@^{__ABMultiValue=}q",
|
|
184
|
+
"",
|
|
185
|
+
{"retval": {"already_cfretained": True}},
|
|
186
|
+
),
|
|
187
|
+
"ABPersonSetImageData": (b"B^{__ABPerson=}^{__CFData=}",),
|
|
188
|
+
"ABCreateFormattedAddressFromDictionary": (
|
|
189
|
+
b"^{__CFString=}^{__ABAddressBookRef=}^{__CFDictionary=}",
|
|
190
|
+
"",
|
|
191
|
+
{"retval": {"already_cfretained": True}},
|
|
192
|
+
),
|
|
193
|
+
"ABRecordSetValue": (b"B@^{__CFString=}@",),
|
|
194
|
+
"ABPickerGetDelegate": (b"^{OpaqueHIObjectRef=}^{OpaqueABPicker=}",),
|
|
195
|
+
"ABPersonCreate": (b"^{__ABPerson=}", "", {"retval": {"already_cfretained": True}}),
|
|
196
|
+
"ABCopyArrayOfAllPeople": (
|
|
197
|
+
b"^{__CFArray=}^{__ABAddressBookRef=}",
|
|
198
|
+
"",
|
|
199
|
+
{"retval": {"already_cfretained": True}},
|
|
200
|
+
),
|
|
201
|
+
"ABPickerCopyProperties": (
|
|
202
|
+
b"^{__CFArray=}^{OpaqueABPicker=}",
|
|
203
|
+
"",
|
|
204
|
+
{"retval": {"already_cfretained": True}},
|
|
205
|
+
),
|
|
206
|
+
"ABMultiValueSetPrimaryIdentifier": (b"B^{__ABMultiValue=}^{__CFString=}",),
|
|
207
|
+
"ABPickerCopyDisplayedProperty": (
|
|
208
|
+
b"^{__CFString=}^{OpaqueABPicker=}",
|
|
209
|
+
"",
|
|
210
|
+
{"retval": {"already_cfretained": True}},
|
|
211
|
+
),
|
|
212
|
+
"ABPickerCopySelectedRecords": (
|
|
213
|
+
b"^{__CFArray=}^{OpaqueABPicker=}",
|
|
214
|
+
"",
|
|
215
|
+
{"retval": {"already_cfretained": True}},
|
|
216
|
+
),
|
|
217
|
+
"ABGroupAddGroup": (b"B^{__ABGroup=}^{__ABGroup=}",),
|
|
218
|
+
"ABLocalizedPropertyOrLabel": (b"@@",),
|
|
219
|
+
"ABMultiValueCreateMutable": (
|
|
220
|
+
b"^{__ABMultiValue=}",
|
|
221
|
+
"",
|
|
222
|
+
{"retval": {"already_cfretained": True}},
|
|
223
|
+
),
|
|
224
|
+
"ABRecordCreateCopy": (b"@@", "", {"retval": {"already_cfretained": True}}),
|
|
225
|
+
"ABGetMe": (b"^{__ABPerson=}^{__ABAddressBookRef=}",),
|
|
226
|
+
"ABPickerSetFrame": (
|
|
227
|
+
b"v^{OpaqueABPicker=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
|
|
228
|
+
"",
|
|
229
|
+
{"arguments": {1: {"type_modifier": "n"}}},
|
|
230
|
+
),
|
|
231
|
+
"ABAddPropertiesAndTypes": (
|
|
232
|
+
b"q^{__ABAddressBookRef=}^{__CFString=}^{__CFDictionary=}",
|
|
233
|
+
),
|
|
234
|
+
"ABCopyRecordForUniqueId": (
|
|
235
|
+
b"@^{__ABAddressBookRef=}^{__CFString=}",
|
|
236
|
+
"",
|
|
237
|
+
{"retval": {"already_cfretained": True}},
|
|
238
|
+
),
|
|
239
|
+
"ABSetMe": (b"v^{__ABAddressBookRef=}^{__ABPerson=}",),
|
|
240
|
+
"ABRecordCopyValue": (
|
|
241
|
+
b"@@^{__CFString=}",
|
|
242
|
+
"",
|
|
243
|
+
{"retval": {"already_cfretained": True}},
|
|
244
|
+
),
|
|
245
|
+
"ABTypeOfProperty": (b"q^{__ABAddressBookRef=}^{__CFString=}^{__CFString=}",),
|
|
246
|
+
"ABMultiValueInsert": (
|
|
247
|
+
b"B^{__ABMultiValue=}@^{__CFString=}q^^{__CFString}",
|
|
248
|
+
"",
|
|
249
|
+
{"arguments": {4: {"type_modifier": "o"}}},
|
|
250
|
+
),
|
|
251
|
+
"ABPickerAddProperty": (b"v^{OpaqueABPicker=}^{__CFString=}",),
|
|
252
|
+
"ABMultiValueCopyLabelAtIndex": (
|
|
253
|
+
b"^{__CFString=}^{__ABMultiValue=}q",
|
|
254
|
+
"",
|
|
255
|
+
{"retval": {"already_cfretained": True}},
|
|
256
|
+
),
|
|
257
|
+
"ABPickerChangeAttributes": (b"v^{OpaqueABPicker=}II",),
|
|
258
|
+
"ABPickerDeselectAll": (b"v^{OpaqueABPicker=}",),
|
|
259
|
+
"ABBeginLoadingImageDataForClient": (
|
|
260
|
+
b"q^{__ABPerson=}^?^v",
|
|
261
|
+
"",
|
|
262
|
+
{
|
|
263
|
+
"arguments": {
|
|
264
|
+
1: {
|
|
265
|
+
"callable": {
|
|
266
|
+
"retval": {"type": b"v"},
|
|
267
|
+
"arguments": {
|
|
268
|
+
0: {"type": b"^{__CFData=}"},
|
|
269
|
+
1: {"type": b"q"},
|
|
270
|
+
2: {"type": b"^v"},
|
|
271
|
+
},
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
),
|
|
277
|
+
"ABGetSharedAddressBook": (b"^{__ABAddressBookRef=}",),
|
|
278
|
+
"ABRecordIsReadOnly": (b"B@",),
|
|
279
|
+
"ABPickerIsVisible": (b"B^{OpaqueABPicker=}",),
|
|
280
|
+
"ABRecordCopyUniqueId": (
|
|
281
|
+
b"^{__CFString=}@",
|
|
282
|
+
"",
|
|
283
|
+
{"retval": {"already_cfretained": True}},
|
|
284
|
+
),
|
|
285
|
+
"ABCopyArrayOfAllGroups": (
|
|
286
|
+
b"^{__CFArray=}^{__ABAddressBookRef=}",
|
|
287
|
+
"",
|
|
288
|
+
{"retval": {"already_cfretained": True}},
|
|
289
|
+
),
|
|
290
|
+
"ABPickerCreate": (
|
|
291
|
+
b"^{OpaqueABPicker=}",
|
|
292
|
+
"",
|
|
293
|
+
{"retval": {"already_cfretained": True}},
|
|
294
|
+
),
|
|
295
|
+
"ABGroupRemoveMember": (b"B^{__ABGroup=}^{__ABPerson=}",),
|
|
296
|
+
"ABPickerDeselectIdentifier": (b"v^{OpaqueABPicker=}^{__ABPerson=}^{__CFString=}",),
|
|
297
|
+
"ABPickerSetColumnTitle": (b"v^{OpaqueABPicker=}^{__CFString=}^{__CFString=}",),
|
|
298
|
+
"ABPickerCopySelectedValues": (
|
|
299
|
+
b"^{__CFArray=}^{OpaqueABPicker=}",
|
|
300
|
+
"",
|
|
301
|
+
{"retval": {"already_cfretained": True}},
|
|
302
|
+
),
|
|
303
|
+
"ABPickerGetFrame": (
|
|
304
|
+
b"v^{OpaqueABPicker=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
|
|
305
|
+
"",
|
|
306
|
+
{"arguments": {1: {"type_modifier": "o"}}},
|
|
307
|
+
),
|
|
308
|
+
"ABMultiValuePropertyType": (b"q^{__ABMultiValue=}",),
|
|
309
|
+
"ABPersonCopyVCardRepresentation": (
|
|
310
|
+
b"^{__CFData=}^{__ABPerson=}",
|
|
311
|
+
"",
|
|
312
|
+
{"retval": {"already_cfretained": True}},
|
|
313
|
+
),
|
|
314
|
+
"ABCopyArrayOfPropertiesForRecordType": (
|
|
315
|
+
b"^{__CFArray=}^{__ABAddressBookRef=}^{__CFString=}",
|
|
316
|
+
"",
|
|
317
|
+
{"retval": {"already_cfretained": True}},
|
|
318
|
+
),
|
|
319
|
+
"ABPickerCopyColumnTitle": (
|
|
320
|
+
b"^{__CFString=}^{OpaqueABPicker=}^{__CFString=}",
|
|
321
|
+
"",
|
|
322
|
+
{"retval": {"already_cfretained": True}},
|
|
323
|
+
),
|
|
324
|
+
"ABPickerSetVisibility": (b"v^{OpaqueABPicker=}B",),
|
|
325
|
+
"ABPersonCopyParentGroups": (
|
|
326
|
+
b"^{__CFArray=}^{__ABPerson=}",
|
|
327
|
+
"",
|
|
328
|
+
{"retval": {"already_cfretained": True}},
|
|
329
|
+
),
|
|
330
|
+
"ABCopyLocalizedPropertyOrLabel": (
|
|
331
|
+
b"^{__CFString=}^{__CFString=}",
|
|
332
|
+
"",
|
|
333
|
+
{"retval": {"already_cfretained": True}},
|
|
334
|
+
),
|
|
335
|
+
"ABPickerEditInAddressBook": (b"v^{OpaqueABPicker=}",),
|
|
336
|
+
"ABPickerSetDisplayedProperty": (b"v^{OpaqueABPicker=}^{__CFString=}",),
|
|
337
|
+
}
|
|
338
|
+
cftypes = [
|
|
339
|
+
("ABAddressBookRef", b"^{__ABAddressBookRef=}", None, "ABAddressBook"),
|
|
340
|
+
("ABGroupRef", b"^{__ABGroup=}", None, "ABGroup"),
|
|
341
|
+
("ABMultiValueRef", b"^{__ABMultiValue=}", None, "ABMultiValue"),
|
|
342
|
+
("ABMutableMultiValueRef", b"^{__ABMultiValue=}", None, "ABMutableMultiValue"),
|
|
343
|
+
("ABPersonRef", b"^{__ABPerson=}", None, "ABPerson"),
|
|
344
|
+
("ABSearchElementRef", b"^{__ABSearchElementRef=}", None, "ABSearchElement"),
|
|
345
|
+
("ABPickerRef", b"^{OpaqueABPicker}", None, "ABPeoplePickerView"),
|
|
346
|
+
]
|
|
347
|
+
r = objc.registerMetaDataForSelector
|
|
348
|
+
objc._updatingMetadata(True)
|
|
349
|
+
try:
|
|
350
|
+
r(b"ABAddressBook", b"addRecord:", {"retval": {"type": "Z"}})
|
|
351
|
+
r(
|
|
352
|
+
b"ABAddressBook",
|
|
353
|
+
b"addRecord:error:",
|
|
354
|
+
{"retval": {"type": "Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
355
|
+
)
|
|
356
|
+
r(b"ABAddressBook", b"hasUnsavedChanges", {"retval": {"type": "Z"}})
|
|
357
|
+
r(b"ABAddressBook", b"removeRecord:", {"retval": {"type": "Z"}})
|
|
358
|
+
r(
|
|
359
|
+
b"ABAddressBook",
|
|
360
|
+
b"removeRecord:error:",
|
|
361
|
+
{"retval": {"type": "Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
362
|
+
)
|
|
363
|
+
r(b"ABAddressBook", b"save", {"retval": {"type": "Z"}})
|
|
364
|
+
r(
|
|
365
|
+
b"ABAddressBook",
|
|
366
|
+
b"saveAndReturnError:",
|
|
367
|
+
{"retval": {"type": "Z"}, "arguments": {2: {"type_modifier": b"o"}}},
|
|
368
|
+
)
|
|
369
|
+
r(b"ABGroup", b"addMember:", {"retval": {"type": "Z"}})
|
|
370
|
+
r(b"ABGroup", b"addSubgroup:", {"retval": {"type": "Z"}})
|
|
371
|
+
r(b"ABGroup", b"removeMember:", {"retval": {"type": "Z"}})
|
|
372
|
+
r(b"ABGroup", b"removeSubgroup:", {"retval": {"type": "Z"}})
|
|
373
|
+
r(
|
|
374
|
+
b"ABGroup",
|
|
375
|
+
b"setDistributionIdentifier:forProperty:person:",
|
|
376
|
+
{"retval": {"type": "Z"}},
|
|
377
|
+
)
|
|
378
|
+
r(b"ABMutableMultiValue", b"removeValueAndLabelAtIndex:", {"retval": {"type": "Z"}})
|
|
379
|
+
r(
|
|
380
|
+
b"ABMutableMultiValue",
|
|
381
|
+
b"replaceLabelAtIndex:withLabel:",
|
|
382
|
+
{"retval": {"type": "Z"}},
|
|
383
|
+
)
|
|
384
|
+
r(
|
|
385
|
+
b"ABMutableMultiValue",
|
|
386
|
+
b"replaceValueAtIndex:withValue:",
|
|
387
|
+
{"retval": {"type": "Z"}},
|
|
388
|
+
)
|
|
389
|
+
r(b"ABMutableMultiValue", b"setPrimaryIdentifier:", {"retval": {"type": "Z"}})
|
|
390
|
+
r(b"ABPeoplePickerView", b"allowsGroupSelection", {"retval": {"type": "Z"}})
|
|
391
|
+
r(b"ABPeoplePickerView", b"allowsMultipleSelection", {"retval": {"type": "Z"}})
|
|
392
|
+
r(
|
|
393
|
+
b"ABPeoplePickerView",
|
|
394
|
+
b"selectGroup:byExtendingSelection:",
|
|
395
|
+
{"arguments": {3: {"type": "Z"}}},
|
|
396
|
+
)
|
|
397
|
+
r(
|
|
398
|
+
b"ABPeoplePickerView",
|
|
399
|
+
b"selectIdentifier:forPerson:byExtendingSelection:",
|
|
400
|
+
{"arguments": {4: {"type": "Z"}}},
|
|
401
|
+
)
|
|
402
|
+
r(
|
|
403
|
+
b"ABPeoplePickerView",
|
|
404
|
+
b"selectRecord:byExtendingSelection:",
|
|
405
|
+
{"arguments": {3: {"type": "Z"}}},
|
|
406
|
+
)
|
|
407
|
+
r(
|
|
408
|
+
b"ABPeoplePickerView",
|
|
409
|
+
b"setAllowsGroupSelection:",
|
|
410
|
+
{"arguments": {2: {"type": "Z"}}},
|
|
411
|
+
)
|
|
412
|
+
r(
|
|
413
|
+
b"ABPeoplePickerView",
|
|
414
|
+
b"setAllowsMultipleSelection:",
|
|
415
|
+
{"arguments": {2: {"type": "Z"}}},
|
|
416
|
+
)
|
|
417
|
+
r(
|
|
418
|
+
b"ABPeoplePickerView",
|
|
419
|
+
b"setGroupDoubleAction:",
|
|
420
|
+
{"arguments": {2: {"sel_of_type": b"v@:@"}}},
|
|
421
|
+
)
|
|
422
|
+
r(
|
|
423
|
+
b"ABPeoplePickerView",
|
|
424
|
+
b"setNameDoubleAction:",
|
|
425
|
+
{"arguments": {2: {"sel_of_type": b"v@:@"}}},
|
|
426
|
+
)
|
|
427
|
+
r(b"ABPerson", b"setImageData:", {"retval": {"type": "Z"}})
|
|
428
|
+
r(b"ABPersonView", b"editing", {"retval": {"type": "Z"}})
|
|
429
|
+
r(b"ABPersonView", b"setEditing:", {"arguments": {2: {"type": "Z"}}})
|
|
430
|
+
r(
|
|
431
|
+
b"ABPersonView",
|
|
432
|
+
b"setShouldShowLinkedPeople:",
|
|
433
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
434
|
+
)
|
|
435
|
+
r(b"ABPersonView", b"shouldShowLinkedPeople", {"retval": {"type": b"Z"}})
|
|
436
|
+
r(b"ABRecord", b"isReadOnly", {"retval": {"type": "Z"}})
|
|
437
|
+
r(b"ABRecord", b"removeValueForProperty:", {"retval": {"type": "Z"}})
|
|
438
|
+
r(b"ABRecord", b"setValue:forProperty:", {"retval": {"type": "Z"}})
|
|
439
|
+
r(
|
|
440
|
+
b"ABRecord",
|
|
441
|
+
b"setValue:forProperty:error:",
|
|
442
|
+
{"retval": {"type": "Z"}, "arguments": {4: {"type_modifier": b"o"}}},
|
|
443
|
+
)
|
|
444
|
+
r(b"ABSearchElement", b"matchesRecord:", {"retval": {"type": "Z"}})
|
|
445
|
+
r(b"NSObject", b"actionProperty", {"retval": {"type": b"@"}})
|
|
446
|
+
r(
|
|
447
|
+
b"NSObject",
|
|
448
|
+
b"consumeImageData:forTag:",
|
|
449
|
+
{
|
|
450
|
+
"required": True,
|
|
451
|
+
"retval": {"type": b"v"},
|
|
452
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"q"}},
|
|
453
|
+
},
|
|
454
|
+
)
|
|
455
|
+
r(
|
|
456
|
+
b"NSObject",
|
|
457
|
+
b"performActionForPerson:identifier:",
|
|
458
|
+
{"retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}}},
|
|
459
|
+
)
|
|
460
|
+
r(
|
|
461
|
+
b"NSObject",
|
|
462
|
+
b"shouldEnableActionForPerson:identifier:",
|
|
463
|
+
{"retval": {"type": "Z"}, "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}}},
|
|
464
|
+
)
|
|
465
|
+
r(
|
|
466
|
+
b"NSObject",
|
|
467
|
+
b"titleForPerson:identifier:",
|
|
468
|
+
{"retval": {"type": b"@"}, "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}}},
|
|
469
|
+
)
|
|
470
|
+
finally:
|
|
471
|
+
objc._updatingMetadata(False)
|
|
472
|
+
|
|
473
|
+
objc.registerNewKeywordsFromSelector("ABPerson", b"initWithVCardRepresentation:")
|
|
474
|
+
objc.registerNewKeywordsFromSelector("ABRecord", b"init")
|
|
475
|
+
objc.registerNewKeywordsFromSelector("ABRecord", b"initWithAddressBook:")
|
|
476
|
+
protocols = {
|
|
477
|
+
"ABActionDelegate": objc.informal_protocol(
|
|
478
|
+
"ABActionDelegate",
|
|
479
|
+
[
|
|
480
|
+
objc.selector(
|
|
481
|
+
None,
|
|
482
|
+
b"shouldEnableActionForPerson:identifier:",
|
|
483
|
+
b"Z@:@@",
|
|
484
|
+
isRequired=False,
|
|
485
|
+
),
|
|
486
|
+
objc.selector(None, b"actionProperty", b"@@:", isRequired=False),
|
|
487
|
+
objc.selector(
|
|
488
|
+
None, b"performActionForPerson:identifier:", b"v@:@@", isRequired=False
|
|
489
|
+
),
|
|
490
|
+
objc.selector(
|
|
491
|
+
None, b"titleForPerson:identifier:", b"@@:@@", isRequired=False
|
|
492
|
+
),
|
|
493
|
+
],
|
|
494
|
+
)
|
|
495
|
+
}
|
|
496
|
+
expressions = {}
|
|
497
|
+
|
|
498
|
+
# END OF FILE
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyobjc-framework-AddressBook
|
|
3
|
+
Version: 12.2
|
|
4
|
+
Summary: Wrappers for the framework AddressBook on macOS
|
|
5
|
+
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
|
+
Author: Ronald Oussoren
|
|
7
|
+
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: PyObjC,AddressBook
|
|
10
|
+
Platform: MacOS X
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Natural Language :: English
|
|
16
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
|
+
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
28
|
+
Classifier: Programming Language :: Objective C
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
+
Requires-Python: >=3.10
|
|
32
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
+
License-File: LICENSE.txt
|
|
34
|
+
Requires-Dist: pyobjc-core>=12.2
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.2
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: keywords
|
|
43
|
+
Dynamic: license
|
|
44
|
+
Dynamic: license-file
|
|
45
|
+
Dynamic: platform
|
|
46
|
+
Dynamic: requires-dist
|
|
47
|
+
Dynamic: requires-python
|
|
48
|
+
Dynamic: summary
|
|
49
|
+
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
50
|
+
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
51
|
+
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
Wrappers for the "AddressBook" framework on macOS. The Address Book is
|
|
55
|
+
a centralized database for contact and other information for people. Applications
|
|
56
|
+
that make use of the AddressBook framework all use the same database.
|
|
57
|
+
|
|
58
|
+
These wrappers don't include documentation, please check Apple's documentation
|
|
59
|
+
for information on how to use this framework and PyObjC's documentation
|
|
60
|
+
for general tips and tricks regarding the translation between Python
|
|
61
|
+
and (Objective-)C frameworks
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Project links
|
|
65
|
+
-------------
|
|
66
|
+
|
|
67
|
+
* `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
|
|
68
|
+
|
|
69
|
+
* `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
|
|
70
|
+
|
|
71
|
+
* `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
|
|
72
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
AddressBook/_AddressBook.cpython-315t-darwin.so,sha256=b_hTlZkUUo3tKf3P-xx3VQZ7oplX7tOqDfZbt2cCKkc,84896
|
|
2
|
+
AddressBook/__init__.py,sha256=xEA47xJ64XR5Kl1iTt3S13iFfpRcyjfEmAzP7tGhwvY,887
|
|
3
|
+
AddressBook/_metadata.py,sha256=bCT6PSiqeQhteWxnVaikbR7HuAwKXZn6x29PVtaMQng,21977
|
|
4
|
+
pyobjc_framework_addressbook-12.2.dist-info/licenses/LICENSE.txt,sha256=DKBLB5KNSHK52bsiGHygQm3Yv6sI8m6toJmacdyBqv8,1249
|
|
5
|
+
pyobjc_framework_addressbook-12.2.dist-info/METADATA,sha256=q5sJyia0Y6o2SK9KvRnBqcH5bwkbvhoXtTa3qKRFxWM,2723
|
|
6
|
+
pyobjc_framework_addressbook-12.2.dist-info/WHEEL,sha256=_nP7yfUfwxmGX9RTJbiMJrobK8htS_8OhvZ4aYaIBs4,116
|
|
7
|
+
pyobjc_framework_addressbook-12.2.dist-info/pyobjc-build-info.txt,sha256=Ri0Wl_rPog8K797Y9SwUgX2P5KgewvMu0uQOBhtk0lo,83
|
|
8
|
+
pyobjc_framework_addressbook-12.2.dist-info/top_level.txt,sha256=lKPtQGbVrqGoHrn2OAoR4LoF6G-B4hYfjJ3HPL-5nS4,12
|
|
9
|
+
pyobjc_framework_addressbook-12.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
|
+
|
|
3
|
+
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
+
Copyright 2003-2025 - Ronald Oussoren
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
|
+
|
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
AddressBook
|