pyobjc-framework-InputMethodKit 10.1__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-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/LICENSE.txt +1 -1
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/InputMethodKit/_metadata.py +23 -26
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/pyobjc_framework_InputMethodKit.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/pyobjc_framework_InputMethodKit.egg-info/SOURCES.txt +5 -4
- pyobjc_framework_inputmethodkit-11.0/Lib/pyobjc_framework_InputMethodKit.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_inputmethodkit-11.0/Lib/pyobjc_framework_InputMethodKit.egg-info/requires.txt +2 -0
- pyobjc_framework_inputmethodkit-11.0/Modules/_InputMethodKit.m +77 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/PyObjCTest/test_imkserver.py +3 -4
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/PyObjCTest/test_inputmethodkit.py +1 -0
- pyobjc_framework_inputmethodkit-11.0/metadata/raw/arm64-14.5.fwinfo +1400 -0
- pyobjc-framework-InputMethodKit-10.1/metadata/raw/arm64-12.0.fwinfo → pyobjc_framework_inputmethodkit-11.0/metadata/raw/arm64-15.0.fwinfo +9 -3
- pyobjc_framework_inputmethodkit-11.0/metadata/raw/x86_64-14.5.fwinfo +1400 -0
- pyobjc-framework-InputMethodKit-10.1/metadata/raw/x86_64-12.0.fwinfo → pyobjc_framework_inputmethodkit-11.0/metadata/raw/x86_64-15.0.fwinfo +9 -3
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/setup.py +2 -3
- pyobjc-framework-InputMethodKit-10.1/Lib/pyobjc_framework_InputMethodKit.egg-info/requires.txt +0 -2
- pyobjc-framework-InputMethodKit-10.1/Modules/_InputMethodKit.m +0 -53
- pyobjc-framework-InputMethodKit-10.1/metadata/raw/arm64-14.0.fwinfo +0 -1410
- pyobjc-framework-InputMethodKit-10.1/metadata/raw/x86_64-14.0.fwinfo +0 -1410
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/InputMethodKit/__init__.py +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/pyobjc_framework_InputMethodKit.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/pyobjc_framework_InputMethodKit.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Lib/pyobjc_framework_InputMethodKit.egg-info/top_level.txt +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/Modules/_InputMethodKit_protocols.m +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/PyObjCTest/test_imkcandidates.py +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/PyObjCTest/test_imkinputcontroller.py +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/README.txt +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/InputMethodKit.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/raw/x86_64-10.6.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/raw/x86_64-10.7.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/raw/x86_64-10.8.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-11.0}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
2
|
|
|
3
3
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
-
Copyright 2003-
|
|
4
|
+
Copyright 2003-2024 - Ronald Oussoren
|
|
5
5
|
|
|
6
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
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Tue Jun 11 10:12:44 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -32,22 +32,7 @@ else:
|
|
|
32
32
|
misc = {}
|
|
33
33
|
constants = """$IMKCandidatesOpacityAttributeName$IMKCandidatesSendServerKeyEventFirst$IMKControllerClass$IMKDelegateClass$IMKModeDictionary$kIMKCommandClientName$kIMKCommandMenuItemName$"""
|
|
34
34
|
enums = """$kIMKAnnotation@1$kIMKLocateCandidatesAboveHint@1$kIMKLocateCandidatesBelowHint@2$kIMKLocateCandidatesLeftHint@3$kIMKLocateCandidatesRightHint@4$kIMKMain@0$kIMKScrollingGridCandidatePanel@2$kIMKSingleColumnScrollingCandidatePanel@1$kIMKSingleRowSteppingCandidatePanel@3$kIMKSubList@2$"""
|
|
35
|
-
misc.update(
|
|
36
|
-
{
|
|
37
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/InputMethodKit.framework/Headers/IMKCandidates.h:19:1)": NewType(
|
|
38
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/InputMethodKit.framework/Headers/IMKCandidates.h:19:1)",
|
|
39
|
-
int,
|
|
40
|
-
),
|
|
41
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/InputMethodKit.framework/Headers/IMKCandidates.h:43:1)": NewType(
|
|
42
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/InputMethodKit.framework/Headers/IMKCandidates.h:43:1)",
|
|
43
|
-
int,
|
|
44
|
-
),
|
|
45
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/InputMethodKit.framework/Headers/IMKCandidates.h:26:1)": NewType(
|
|
46
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/InputMethodKit.framework/Headers/IMKCandidates.h:26:1)",
|
|
47
|
-
int,
|
|
48
|
-
),
|
|
49
|
-
}
|
|
50
|
-
)
|
|
35
|
+
misc.update({})
|
|
51
36
|
misc.update({})
|
|
52
37
|
misc.update({})
|
|
53
38
|
r = objc.registerMetaDataForSelector
|
|
@@ -143,9 +128,9 @@ try:
|
|
|
143
128
|
"required": True,
|
|
144
129
|
"retval": {"type": "Z"},
|
|
145
130
|
"arguments": {
|
|
146
|
-
2: {"type":
|
|
147
|
-
3: {"type":
|
|
148
|
-
4: {"type":
|
|
131
|
+
2: {"type": "Q"},
|
|
132
|
+
3: {"type": "{CGPoint=dd}"},
|
|
133
|
+
4: {"type": "Q"},
|
|
149
134
|
5: {"type": "^Z", "type_modifier": b"o"},
|
|
150
135
|
6: {"type": b"@"},
|
|
151
136
|
},
|
|
@@ -158,9 +143,9 @@ try:
|
|
|
158
143
|
"required": True,
|
|
159
144
|
"retval": {"type": "Z"},
|
|
160
145
|
"arguments": {
|
|
161
|
-
2: {"type":
|
|
162
|
-
3: {"type":
|
|
163
|
-
4: {"type":
|
|
146
|
+
2: {"type": "Q"},
|
|
147
|
+
3: {"type": "{CGPoint=dd}"},
|
|
148
|
+
4: {"type": "Q"},
|
|
164
149
|
5: {"type": b"@"},
|
|
165
150
|
},
|
|
166
151
|
},
|
|
@@ -172,9 +157,9 @@ try:
|
|
|
172
157
|
"required": True,
|
|
173
158
|
"retval": {"type": "Z"},
|
|
174
159
|
"arguments": {
|
|
175
|
-
2: {"type":
|
|
176
|
-
3: {"type":
|
|
177
|
-
4: {"type":
|
|
160
|
+
2: {"type": "Q"},
|
|
161
|
+
3: {"type": "{CGPoint=dd}"},
|
|
162
|
+
4: {"type": "Q"},
|
|
178
163
|
5: {"type": b"@"},
|
|
179
164
|
},
|
|
180
165
|
},
|
|
@@ -214,6 +199,18 @@ try:
|
|
|
214
199
|
)
|
|
215
200
|
finally:
|
|
216
201
|
objc._updatingMetadata(False)
|
|
202
|
+
|
|
203
|
+
objc.registerNewKeywordsFromSelector("IMKCandidates", b"initWithServer:panelType:")
|
|
204
|
+
objc.registerNewKeywordsFromSelector(
|
|
205
|
+
"IMKCandidates", b"initWithServer:panelType:styleType:"
|
|
206
|
+
)
|
|
207
|
+
objc.registerNewKeywordsFromSelector(
|
|
208
|
+
"IMKInputController", b"initWithServer:delegate:client:"
|
|
209
|
+
)
|
|
210
|
+
objc.registerNewKeywordsFromSelector("IMKServer", b"initWithName:bundleIdentifier:")
|
|
211
|
+
objc.registerNewKeywordsFromSelector(
|
|
212
|
+
"IMKServer", b"initWithName:controllerClass:delegateClass:"
|
|
213
|
+
)
|
|
217
214
|
protocols = {
|
|
218
215
|
"IMKServerInput": objc.informal_protocol(
|
|
219
216
|
"IMKServerInput",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-InputMethodKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework InputMethodKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ 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
33
|
License-File: LICENSE.txt
|
|
34
|
-
Requires-Dist: pyobjc-core>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
37
37
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
38
38
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -10,6 +10,7 @@ Lib/pyobjc_framework_InputMethodKit.egg-info/PKG-INFO
|
|
|
10
10
|
Lib/pyobjc_framework_InputMethodKit.egg-info/SOURCES.txt
|
|
11
11
|
Lib/pyobjc_framework_InputMethodKit.egg-info/dependency_links.txt
|
|
12
12
|
Lib/pyobjc_framework_InputMethodKit.egg-info/not-zip-safe
|
|
13
|
+
Lib/pyobjc_framework_InputMethodKit.egg-info/pyobjc-build-info.txt
|
|
13
14
|
Lib/pyobjc_framework_InputMethodKit.egg-info/requires.txt
|
|
14
15
|
Lib/pyobjc_framework_InputMethodKit.egg-info/top_level.txt
|
|
15
16
|
Modules/_InputMethodKit.m
|
|
@@ -23,13 +24,13 @@ PyObjCTest/test_imkserver.py
|
|
|
23
24
|
PyObjCTest/test_inputmethodkit.py
|
|
24
25
|
metadata/InputMethodKit.fwinfo
|
|
25
26
|
metadata/metadata.ini
|
|
26
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
27
27
|
metadata/raw/arm64-12.3.fwinfo
|
|
28
|
-
metadata/raw/arm64-14.
|
|
28
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
29
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
29
30
|
metadata/raw/x86_64-10.16.fwinfo
|
|
30
31
|
metadata/raw/x86_64-10.6.fwinfo
|
|
31
32
|
metadata/raw/x86_64-10.7.fwinfo
|
|
32
33
|
metadata/raw/x86_64-10.8.fwinfo
|
|
33
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
34
34
|
metadata/raw/x86_64-12.3.fwinfo
|
|
35
|
-
metadata/raw/x86_64-14.
|
|
35
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
36
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#if PyObjC_BUILD_RELEASE >= 1014
|
|
6
|
+
/* The SDK included with Xcode 10 no longer includes a number
|
|
7
|
+
* of header files, but does #include them in <Carbon/Carbon.h>.
|
|
8
|
+
*
|
|
9
|
+
* The defines below avoid trying to import these, which is
|
|
10
|
+
* safe because we don't use any of the definitions from these files.
|
|
11
|
+
*/
|
|
12
|
+
#define __CARBONSOUND__
|
|
13
|
+
#define __NAVIGATIONSERVICES__
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#import <InputMethodKit/InputMethodKit.h>
|
|
17
|
+
|
|
18
|
+
/* We include the source code here instead of
|
|
19
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
20
|
+
*/
|
|
21
|
+
#include "_InputMethodKit_protocols.m"
|
|
22
|
+
|
|
23
|
+
static PyMethodDef mod_methods[] = {
|
|
24
|
+
{0, 0, 0, 0} /* sentinel */
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
static int mod_exec_module(PyObject* m)
|
|
28
|
+
{
|
|
29
|
+
return 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
33
|
+
{
|
|
34
|
+
.slot = Py_mod_exec,
|
|
35
|
+
.value = (void*)mod_exec_module
|
|
36
|
+
},
|
|
37
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
38
|
+
{
|
|
39
|
+
/* This extension does not use the CPython API other than initializing
|
|
40
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
41
|
+
* GILs
|
|
42
|
+
*/
|
|
43
|
+
.slot = Py_mod_multiple_interpreters,
|
|
44
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
45
|
+
},
|
|
46
|
+
#endif
|
|
47
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
48
|
+
{
|
|
49
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
50
|
+
.slot = Py_mod_gil,
|
|
51
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
52
|
+
},
|
|
53
|
+
#endif
|
|
54
|
+
{ /* Sentinel */
|
|
55
|
+
.slot = 0,
|
|
56
|
+
.value = 0
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
static struct PyModuleDef mod_module = {
|
|
61
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
62
|
+
.m_name = "_InputMethodKit",
|
|
63
|
+
.m_doc = NULL,
|
|
64
|
+
.m_size = 0,
|
|
65
|
+
.m_methods = mod_methods,
|
|
66
|
+
.m_slots = mod_slots,
|
|
67
|
+
.m_traverse = NULL,
|
|
68
|
+
.m_clear = NULL,
|
|
69
|
+
.m_free = NULL,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
PyObject* PyInit__InputMethodKit(void);
|
|
73
|
+
|
|
74
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__InputMethodKit(void)
|
|
75
|
+
{
|
|
76
|
+
return PyModuleDef_Init(&mod_module);
|
|
77
|
+
}
|
{pyobjc-framework-InputMethodKit-10.1 → pyobjc_framework_inputmethodkit-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,
|
|
@@ -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-InputMethodKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework InputMethodKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ 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
33
|
License-File: LICENSE.txt
|
|
34
|
-
Requires-Dist: pyobjc-core>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
Wrappers for the "InputMethodKit" framework on macOS 10.5 or later. The
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import InputMethodKit
|
|
2
|
-
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestIMKServer(TestCase):
|
|
6
|
-
@expectedFailure
|
|
7
6
|
def testBrokenConstants(self):
|
|
8
7
|
# The definitions below are defined on 10.5, but not actually
|
|
9
8
|
# exported by the framework.
|
|
@@ -15,5 +14,5 @@ class TestIMKServer(TestCase):
|
|
|
15
14
|
|
|
16
15
|
@min_os_level("10.7")
|
|
17
16
|
def testMethods10_7(self):
|
|
18
|
-
self.assertResultIsBOOL(InputMethodKit.IMKServer.paletteWillTerminate)
|
|
19
|
-
self.assertResultIsBOOL(InputMethodKit.IMKServer.lastKeyEventWasDeadKey)
|
|
17
|
+
self.assertResultIsBOOL(InputMethodKit.IMKServer.new().paletteWillTerminate)
|
|
18
|
+
self.assertResultIsBOOL(InputMethodKit.IMKServer.new().lastKeyEventWasDeadKey)
|