pyobjc-framework-CoreSpotlight 10.2__tar.gz → 11.0__tar.gz
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.
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/CoreSpotlight/__init__.py +6 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/CoreSpotlight/_metadata.py +57 -3
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/pyobjc_framework_CoreSpotlight.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/pyobjc_framework_CoreSpotlight.egg-info/SOURCES.txt +5 -4
- pyobjc_framework_corespotlight-11.0/Lib/pyobjc_framework_CoreSpotlight.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_corespotlight-11.0/Lib/pyobjc_framework_CoreSpotlight.egg-info/requires.txt +2 -0
- pyobjc_framework_corespotlight-11.0/Modules/_CoreSpotlight.m +67 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_cssearchableindex.py +9 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_cssearchableitem.py +6 -1
- pyobjc_framework_corespotlight-11.0/PyObjCTest/test_csuserquery.py +35 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/CoreSpotlight.fwinfo +14 -0
- pyobjc-framework-CoreSpotlight-10.2/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_corespotlight-11.0/metadata/raw/arm64-14.5.fwinfo +50 -22
- pyobjc_framework_corespotlight-11.0/metadata/raw/arm64-15.0.fwinfo +8507 -0
- pyobjc-framework-CoreSpotlight-10.2/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_corespotlight-11.0/metadata/raw/x86_64-14.5.fwinfo +50 -22
- pyobjc_framework_corespotlight-11.0/metadata/raw/x86_64-15.0.fwinfo +8507 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/setup.py +1 -3
- pyobjc-framework-CoreSpotlight-10.2/Lib/pyobjc_framework_CoreSpotlight.egg-info/requires.txt +0 -2
- pyobjc-framework-CoreSpotlight-10.2/Modules/_CoreSpotlight.m +0 -43
- pyobjc-framework-CoreSpotlight-10.2/PyObjCTest/test_csuserquery.py +0 -19
- pyobjc-framework-CoreSpotlight-10.2/metadata/raw/arm64-12.0.fwinfo +0 -7658
- pyobjc-framework-CoreSpotlight-10.2/metadata/raw/x86_64-12.0.fwinfo +0 -7658
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/pyobjc_framework_CoreSpotlight.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/pyobjc_framework_CoreSpotlight.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Lib/pyobjc_framework_CoreSpotlight.egg-info/top_level.txt +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/License.txt +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Modules/_CoreSpotlight_protocols.m +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_corespotlight.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_csimportextension.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_cssearchableitemattributeset.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_cssearchableitemset_messaging.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_cssearchquery.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/PyObjCTest/test_cssuggestion.py +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/raw/arm64-13.0.fwinfo +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/metadata/raw/x86_64-13.0.fwinfo +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/setup.cfg +0 -0
|
@@ -31,6 +31,12 @@ def _setup():
|
|
|
31
31
|
globals()["__dir__"] = dir_func
|
|
32
32
|
globals()["__getattr__"] = getattr_func
|
|
33
33
|
|
|
34
|
+
for cls, sel in (
|
|
35
|
+
("CSSearchQuery", b"init"),
|
|
36
|
+
("CSCustomAttributeKey", b"init"),
|
|
37
|
+
):
|
|
38
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
39
|
+
|
|
34
40
|
del sys.modules["CoreSpotlight._metadata"]
|
|
35
41
|
|
|
36
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Sun Jun 16 12:04:37 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -31,10 +31,11 @@ else:
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
33
|
constants = """$CSActionIdentifier$CSIndexErrorDomain$CSMailboxArchive$CSMailboxDrafts$CSMailboxInbox$CSMailboxJunk$CSMailboxSent$CSMailboxTrash$CSQueryContinuationActionType$CSSearchQueryErrorDomain$CSSearchQueryString$CSSearchableItemActionType$CSSearchableItemActivityIdentifier$CSSuggestionHighlightAttributeName$CoreSpotlightVersionNumber@d$CoreSpotlightVersionString@*$"""
|
|
34
|
-
enums = """$CSIndexErrorCodeIndexUnavailableError@-1000$CSIndexErrorCodeIndexingUnsupported@-1005$CSIndexErrorCodeInvalidClientStateError@-1002$CSIndexErrorCodeInvalidItemError@-1001$CSIndexErrorCodeQuotaExceeded@-1004$CSIndexErrorCodeRemoteConnectionError@-1003$CSIndexErrorCodeUnknownError@-1$CSSearchQueryErrorCodeCancelled@-2003$CSSearchQueryErrorCodeIndexUnreachable@-2001$CSSearchQueryErrorCodeInvalidQuery@-2002$CSSearchQueryErrorCodeUnknown@-2000$CSSearchQuerySourceOptionAllowMail@1$CSSearchQuerySourceOptionDefault@0$CSSuggestionKindCustom@1$CSSuggestionKindDefault@2$CSSuggestionKindNone@0$"""
|
|
34
|
+
enums = """$CSIndexErrorCodeIndexUnavailableError@-1000$CSIndexErrorCodeIndexingUnsupported@-1005$CSIndexErrorCodeInvalidClientStateError@-1002$CSIndexErrorCodeInvalidItemError@-1001$CSIndexErrorCodeMismatchedClientState@-1006$CSIndexErrorCodeQuotaExceeded@-1004$CSIndexErrorCodeRemoteConnectionError@-1003$CSIndexErrorCodeUnknownError@-1$CSSearchQueryErrorCodeCancelled@-2003$CSSearchQueryErrorCodeIndexUnreachable@-2001$CSSearchQueryErrorCodeInvalidQuery@-2002$CSSearchQueryErrorCodeUnknown@-2000$CSSearchQuerySourceOptionAllowMail@1$CSSearchQuerySourceOptionDefault@0$CSSuggestionKindCustom@1$CSSuggestionKindDefault@2$CSSuggestionKindNone@0$CSUserInteractionDefault@0$CSUserInteractionFocus@1$CSUserInteractionSelect@0$"""
|
|
35
35
|
misc.update(
|
|
36
36
|
{
|
|
37
37
|
"CSSearchQuerySourceOptions": NewType("CSSearchQuerySourceOptions", int),
|
|
38
|
+
"CSUserInteraction": NewType("CSUserInteraction", int),
|
|
38
39
|
"CSIndexErrorCode": NewType("CSIndexErrorCode", int),
|
|
39
40
|
"CSSuggestionKind": NewType("CSSuggestionKind", int),
|
|
40
41
|
"CSSearchQueryErrorCode": NewType("CSSearchQueryErrorCode", int),
|
|
@@ -42,7 +43,10 @@ misc.update(
|
|
|
42
43
|
)
|
|
43
44
|
misc.update({})
|
|
44
45
|
misc.update({})
|
|
45
|
-
aliases = {
|
|
46
|
+
aliases = {
|
|
47
|
+
"CSUserInteractionDefault": "CSUserInteractionSelect",
|
|
48
|
+
"CS_TVOS_UNAVAILABLE": "__TVOS_PROHIBITED",
|
|
49
|
+
}
|
|
46
50
|
r = objc.registerMetaDataForSelector
|
|
47
51
|
objc._updatingMetadata(True)
|
|
48
52
|
try:
|
|
@@ -187,6 +191,20 @@ try:
|
|
|
187
191
|
}
|
|
188
192
|
},
|
|
189
193
|
)
|
|
194
|
+
r(
|
|
195
|
+
b"CSSearchableIndex",
|
|
196
|
+
b"endIndexBatchWithExpectedClientState:newClientState:completionHandler:",
|
|
197
|
+
{
|
|
198
|
+
"arguments": {
|
|
199
|
+
4: {
|
|
200
|
+
"callable": {
|
|
201
|
+
"retval": {"type": b"v"},
|
|
202
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
)
|
|
190
208
|
r(
|
|
191
209
|
b"CSSearchableIndex",
|
|
192
210
|
b"fetchDataForBundleIdentifier:itemIdentifier:contentType:completionHandler:",
|
|
@@ -238,6 +256,8 @@ try:
|
|
|
238
256
|
},
|
|
239
257
|
)
|
|
240
258
|
r(b"CSSearchableIndex", b"isIndexingAvailable", {"retval": {"type": b"Z"}})
|
|
259
|
+
r(b"CSSearchableItem", b"isUpdate", {"retval": {"type": b"Z"}})
|
|
260
|
+
r(b"CSSearchableItem", b"setIsUpdate:", {"arguments": {2: {"type": b"Z"}}})
|
|
241
261
|
r(
|
|
242
262
|
b"CSUserQuery",
|
|
243
263
|
b"foundSuggestionsHandler",
|
|
@@ -270,6 +290,8 @@ try:
|
|
|
270
290
|
b"setEnableRankedResults:",
|
|
271
291
|
{"arguments": {2: {"type": b"Z"}}},
|
|
272
292
|
)
|
|
293
|
+
r(b"NSObject", b"disableSemanticSearch", {"retval": {"type": b"Z"}})
|
|
294
|
+
r(b"NSObject", b"setDisableSemanticSearch:", {"arguments": {2: {"type": b"Z"}}})
|
|
273
295
|
r(
|
|
274
296
|
b"NSObject",
|
|
275
297
|
b"dataForSearchableIndex:itemIdentifier:typeIdentifier:error:",
|
|
@@ -348,6 +370,38 @@ try:
|
|
|
348
370
|
)
|
|
349
371
|
finally:
|
|
350
372
|
objc._updatingMetadata(False)
|
|
373
|
+
|
|
374
|
+
objc.registerNewKeywordsFromSelector("CSCustomAttributeKey", b"initWithKeyName:")
|
|
375
|
+
objc.registerNewKeywordsFromSelector(
|
|
376
|
+
"CSCustomAttributeKey",
|
|
377
|
+
b"initWithKeyName:searchable:searchableByDefault:unique:multiValued:",
|
|
378
|
+
)
|
|
379
|
+
objc.registerNewKeywordsFromSelector("CSLocalizedString", b"initWithLocalizedStrings:")
|
|
380
|
+
objc.registerNewKeywordsFromSelector(
|
|
381
|
+
"CSPerson", b"initWithDisplayName:handles:handleIdentifier:"
|
|
382
|
+
)
|
|
383
|
+
objc.registerNewKeywordsFromSelector(
|
|
384
|
+
"CSSearchQuery", b"initWithQueryString:attributes:"
|
|
385
|
+
)
|
|
386
|
+
objc.registerNewKeywordsFromSelector(
|
|
387
|
+
"CSSearchQuery", b"initWithQueryString:queryContext:"
|
|
388
|
+
)
|
|
389
|
+
objc.registerNewKeywordsFromSelector("CSSearchableIndex", b"initWithName:")
|
|
390
|
+
objc.registerNewKeywordsFromSelector(
|
|
391
|
+
"CSSearchableIndex", b"initWithName:protectionClass:"
|
|
392
|
+
)
|
|
393
|
+
objc.registerNewKeywordsFromSelector(
|
|
394
|
+
"CSSearchableItem", b"initWithUniqueIdentifier:domainIdentifier:attributeSet:"
|
|
395
|
+
)
|
|
396
|
+
objc.registerNewKeywordsFromSelector(
|
|
397
|
+
"CSSearchableItemAttributeSet", b"initWithContentType:"
|
|
398
|
+
)
|
|
399
|
+
objc.registerNewKeywordsFromSelector(
|
|
400
|
+
"CSSearchableItemAttributeSet", b"initWithItemContentType:"
|
|
401
|
+
)
|
|
402
|
+
objc.registerNewKeywordsFromSelector(
|
|
403
|
+
"CSUserQuery", b"initWithUserQueryString:userQueryContext:"
|
|
404
|
+
)
|
|
351
405
|
expressions = {}
|
|
352
406
|
|
|
353
407
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-CoreSpotlight
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework CoreSpotlight on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
36
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
37
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_CoreSpotlight.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_CoreSpotlight.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_CoreSpotlight.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_CoreSpotlight.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_CoreSpotlight.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_CoreSpotlight.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_CoreSpotlight.egg-info/top_level.txt
|
|
14
15
|
Modules/_CoreSpotlight.m
|
|
@@ -27,12 +28,12 @@ PyObjCTest/test_cssuggestion.py
|
|
|
27
28
|
PyObjCTest/test_csuserquery.py
|
|
28
29
|
metadata/CoreSpotlight.fwinfo
|
|
29
30
|
metadata/metadata.ini
|
|
30
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
31
31
|
metadata/raw/arm64-12.3.fwinfo
|
|
32
32
|
metadata/raw/arm64-13.0.fwinfo
|
|
33
|
-
metadata/raw/arm64-14.
|
|
33
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
34
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
34
35
|
metadata/raw/x86_64-10.16.fwinfo
|
|
35
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
36
36
|
metadata/raw/x86_64-12.3.fwinfo
|
|
37
37
|
metadata/raw/x86_64-13.0.fwinfo
|
|
38
|
-
metadata/raw/x86_64-14.
|
|
38
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
39
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <CoreSpotlight/CoreSpotlight.h>
|
|
6
|
+
#import <Foundation/Foundation.h>
|
|
7
|
+
|
|
8
|
+
/* We include the source code here instead of
|
|
9
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
10
|
+
*/
|
|
11
|
+
#include "_CoreSpotlight_protocols.m"
|
|
12
|
+
|
|
13
|
+
static PyMethodDef mod_methods[] = {
|
|
14
|
+
{0, 0, 0, 0} /* sentinel */
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
static int mod_exec_module(PyObject* m)
|
|
18
|
+
{
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
23
|
+
{
|
|
24
|
+
.slot = Py_mod_exec,
|
|
25
|
+
.value = (void*)mod_exec_module
|
|
26
|
+
},
|
|
27
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
28
|
+
{
|
|
29
|
+
/* This extension does not use the CPython API other than initializing
|
|
30
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
31
|
+
* GILs
|
|
32
|
+
*/
|
|
33
|
+
.slot = Py_mod_multiple_interpreters,
|
|
34
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
35
|
+
},
|
|
36
|
+
#endif
|
|
37
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
38
|
+
{
|
|
39
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
40
|
+
.slot = Py_mod_gil,
|
|
41
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
42
|
+
},
|
|
43
|
+
#endif
|
|
44
|
+
{ /* Sentinel */
|
|
45
|
+
.slot = 0,
|
|
46
|
+
.value = 0
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
static struct PyModuleDef mod_module = {
|
|
51
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
52
|
+
.m_name = "_CoreSpotlight",
|
|
53
|
+
.m_doc = NULL,
|
|
54
|
+
.m_size = 0,
|
|
55
|
+
.m_methods = mod_methods,
|
|
56
|
+
.m_slots = mod_slots,
|
|
57
|
+
.m_traverse = NULL,
|
|
58
|
+
.m_clear = NULL,
|
|
59
|
+
.m_free = NULL,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
PyObject* PyInit__CoreSpotlight(void);
|
|
63
|
+
|
|
64
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__CoreSpotlight(void)
|
|
65
|
+
{
|
|
66
|
+
return PyModuleDef_Init(&mod_module);
|
|
67
|
+
}
|
{pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Modules/pyobjc-api.h
RENAMED
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
{pyobjc-framework-CoreSpotlight-10.2 → pyobjc_framework_corespotlight-11.0}/Modules/pyobjc-compat.h
RENAMED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-CoreSpotlight
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework CoreSpotlight on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
Wrappers for the "CoreSpotlight" framework on macOS.
|
|
@@ -36,6 +36,7 @@ class TestCSSearchableIndex(TestCase):
|
|
|
36
36
|
self.assertEqual(CoreSpotlight.CSIndexErrorCodeRemoteConnectionError, -1003)
|
|
37
37
|
self.assertEqual(CoreSpotlight.CSIndexErrorCodeQuotaExceeded, -1004)
|
|
38
38
|
self.assertEqual(CoreSpotlight.CSIndexErrorCodeIndexingUnsupported, -1005)
|
|
39
|
+
self.assertEqual(CoreSpotlight.CSIndexErrorCodeMismatchedClientState, -1006)
|
|
39
40
|
|
|
40
41
|
def testMethods(self):
|
|
41
42
|
self.assertResultIsBOOL(CoreSpotlight.CSSearchableIndex.isIndexingAvailable)
|
|
@@ -101,3 +102,11 @@ class TestCSSearchableIndex(TestCase):
|
|
|
101
102
|
3,
|
|
102
103
|
b"v@@",
|
|
103
104
|
)
|
|
105
|
+
|
|
106
|
+
@min_os_level("15.0")
|
|
107
|
+
def test_methods15_0(self):
|
|
108
|
+
self.assertArgIsBlock(
|
|
109
|
+
CoreSpotlight.CSSearchableIndex.endIndexBatchWithExpectedClientState_newClientState_completionHandler_,
|
|
110
|
+
2,
|
|
111
|
+
b"v@",
|
|
112
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
import CoreSpotlight
|
|
@@ -10,3 +10,8 @@ class TestCSSearchableItem(TestCase):
|
|
|
10
10
|
self.assertIsInstance(CoreSpotlight.CSSearchableItemActivityIdentifier, str)
|
|
11
11
|
self.assertIsInstance(CoreSpotlight.CSQueryContinuationActionType, str)
|
|
12
12
|
self.assertIsInstance(CoreSpotlight.CSSearchQueryString, str)
|
|
13
|
+
|
|
14
|
+
@min_os_level("15.0")
|
|
15
|
+
def test_methods15_0(self):
|
|
16
|
+
self.assertResultIsBOOL(CoreSpotlight.CSSearchableItem.isUpdate)
|
|
17
|
+
self.assertArgIsBOOL(CoreSpotlight.CSSearchableItem.setIsUpdate_, 0)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
|
|
3
|
+
import CoreSpotlight
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestCSUserQuery(TestCase):
|
|
7
|
+
def test_constants(self):
|
|
8
|
+
self.assertIsEnumType(CoreSpotlight.CSUserInteraction)
|
|
9
|
+
self.assertEqual(CoreSpotlight.CSUserInteractionSelect, 0)
|
|
10
|
+
self.assertEqual(
|
|
11
|
+
CoreSpotlight.CSUserInteractionDefault,
|
|
12
|
+
CoreSpotlight.CSUserInteractionSelect,
|
|
13
|
+
)
|
|
14
|
+
self.assertEqual(CoreSpotlight.CSUserInteractionFocus, 1)
|
|
15
|
+
|
|
16
|
+
@min_os_level("13.0")
|
|
17
|
+
def testMethods13_0(self):
|
|
18
|
+
self.assertResultIsBOOL(CoreSpotlight.CSUserQueryContext.enableRankedResults)
|
|
19
|
+
self.assertArgIsBOOL(
|
|
20
|
+
CoreSpotlight.CSUserQueryContext.setEnableRankedResults_, 0
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
self.assertResultIsBlock(
|
|
24
|
+
CoreSpotlight.CSUserQuery.foundSuggestionsHandler, b"v@"
|
|
25
|
+
)
|
|
26
|
+
self.assertArgIsBlock(
|
|
27
|
+
CoreSpotlight.CSUserQuery.setFoundSuggestionsHandler_, 0, b"v@"
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
@min_os_level("15.0")
|
|
31
|
+
def testMethods15_0(self):
|
|
32
|
+
self.assertResultIsBOOL(CoreSpotlight.CSUserQueryContext.disableSemanticSearch)
|
|
33
|
+
self.assertArgIsBOOL(
|
|
34
|
+
CoreSpotlight.CSUserQueryContext.setDisableSemanticSearch_, 0
|
|
35
|
+
)
|
|
@@ -66,6 +66,20 @@
|
|
|
66
66
|
},
|
|
67
67
|
"NSObject": {
|
|
68
68
|
"methods": [
|
|
69
|
+
{
|
|
70
|
+
"selector": "disableSemanticSearch",
|
|
71
|
+
"class_method": false,
|
|
72
|
+
"retval": { "type_override": "Z" },
|
|
73
|
+
"comment": "should be part of 'CSUserQueryContext', but that doesn't work for some reason"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"selector": "setDisableSemanticSearch:",
|
|
77
|
+
"class_method": false,
|
|
78
|
+
"args": {
|
|
79
|
+
"0": { "type_override": "Z" }
|
|
80
|
+
},
|
|
81
|
+
"comment": "should be part of 'CSUserQueryContext', but that doesn't work for some reason"
|
|
82
|
+
},
|
|
69
83
|
{
|
|
70
84
|
"selector": "searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:",
|
|
71
85
|
"class_method": false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED FILE DO NOT EDIT
|
|
2
2
|
//
|
|
3
3
|
// This file was generated by objective.metadata
|
|
4
|
-
// Last update: Sat
|
|
4
|
+
// Last update: Sat May 18 09:27:54 2024
|
|
5
5
|
{
|
|
6
6
|
"arch": "arm64",
|
|
7
7
|
"definitions": {
|
|
@@ -484,6 +484,19 @@
|
|
|
484
484
|
"args": [],
|
|
485
485
|
"class_method": false,
|
|
486
486
|
"retval": {
|
|
487
|
+
"callable": {
|
|
488
|
+
"arguments": {
|
|
489
|
+
"0": {
|
|
490
|
+
"type": "^v"
|
|
491
|
+
},
|
|
492
|
+
"1": {
|
|
493
|
+
"type": "@"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"retval": {
|
|
497
|
+
"type": "v"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
487
500
|
"typestr": "@?",
|
|
488
501
|
"typestr_special": false
|
|
489
502
|
},
|
|
@@ -497,6 +510,9 @@
|
|
|
497
510
|
"arguments": {
|
|
498
511
|
"0": {
|
|
499
512
|
"type": "^v"
|
|
513
|
+
},
|
|
514
|
+
"1": {
|
|
515
|
+
"type": "@"
|
|
500
516
|
}
|
|
501
517
|
},
|
|
502
518
|
"retval": {
|
|
@@ -519,6 +535,19 @@
|
|
|
519
535
|
"args": [],
|
|
520
536
|
"class_method": false,
|
|
521
537
|
"retval": {
|
|
538
|
+
"callable": {
|
|
539
|
+
"arguments": {
|
|
540
|
+
"0": {
|
|
541
|
+
"type": "^v"
|
|
542
|
+
},
|
|
543
|
+
"1": {
|
|
544
|
+
"type": "@"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"retval": {
|
|
548
|
+
"type": "v"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
522
551
|
"typestr": "@?",
|
|
523
552
|
"typestr_special": false
|
|
524
553
|
},
|
|
@@ -532,6 +561,9 @@
|
|
|
532
561
|
"arguments": {
|
|
533
562
|
"0": {
|
|
534
563
|
"type": "^v"
|
|
564
|
+
},
|
|
565
|
+
"1": {
|
|
566
|
+
"type": "@"
|
|
535
567
|
}
|
|
536
568
|
},
|
|
537
569
|
"retval": {
|
|
@@ -7617,26 +7649,6 @@
|
|
|
7617
7649
|
"selector": "compare:",
|
|
7618
7650
|
"visibility": "public"
|
|
7619
7651
|
},
|
|
7620
|
-
{
|
|
7621
|
-
"args": [],
|
|
7622
|
-
"class_method": false,
|
|
7623
|
-
"retval": {
|
|
7624
|
-
"typestr": "@",
|
|
7625
|
-
"typestr_special": false
|
|
7626
|
-
},
|
|
7627
|
-
"selector": "score",
|
|
7628
|
-
"visibility": "public"
|
|
7629
|
-
},
|
|
7630
|
-
{
|
|
7631
|
-
"args": [],
|
|
7632
|
-
"class_method": false,
|
|
7633
|
-
"retval": {
|
|
7634
|
-
"typestr": "@",
|
|
7635
|
-
"typestr_special": false
|
|
7636
|
-
},
|
|
7637
|
-
"selector": "suggestionDataSources",
|
|
7638
|
-
"visibility": "public"
|
|
7639
|
-
},
|
|
7640
7652
|
{
|
|
7641
7653
|
"args": [],
|
|
7642
7654
|
"class_method": false,
|
|
@@ -7741,6 +7753,19 @@
|
|
|
7741
7753
|
"args": [],
|
|
7742
7754
|
"class_method": false,
|
|
7743
7755
|
"retval": {
|
|
7756
|
+
"callable": {
|
|
7757
|
+
"arguments": {
|
|
7758
|
+
"0": {
|
|
7759
|
+
"type": "^v"
|
|
7760
|
+
},
|
|
7761
|
+
"1": {
|
|
7762
|
+
"type": "@"
|
|
7763
|
+
}
|
|
7764
|
+
},
|
|
7765
|
+
"retval": {
|
|
7766
|
+
"type": "v"
|
|
7767
|
+
}
|
|
7768
|
+
},
|
|
7744
7769
|
"typestr": "@?",
|
|
7745
7770
|
"typestr_special": false
|
|
7746
7771
|
},
|
|
@@ -7754,6 +7779,9 @@
|
|
|
7754
7779
|
"arguments": {
|
|
7755
7780
|
"0": {
|
|
7756
7781
|
"type": "^v"
|
|
7782
|
+
},
|
|
7783
|
+
"1": {
|
|
7784
|
+
"type": "@"
|
|
7757
7785
|
}
|
|
7758
7786
|
},
|
|
7759
7787
|
"retval": {
|
|
@@ -8258,5 +8286,5 @@
|
|
|
8258
8286
|
"CSUserQuery.h"
|
|
8259
8287
|
],
|
|
8260
8288
|
"release": "10.16",
|
|
8261
|
-
"sdk": "/Users/ronald/Applications/Xcode
|
|
8289
|
+
"sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
|
|
8262
8290
|
}
|