PyObjC is a bidirectional bridge between Python and Objective-C, enabling Python scripts to use and extend macOS's Cocoa frameworks. `pyobjc-framework-fileproviderui` provides Python wrappers for the `FileProviderUI` framework on macOS, allowing developers to interact with File Provider UI extensions. The PyObjC project, including this framework wrapper, maintains an active development cycle with frequent minor releases and major versions often aligning with new macOS SDKs.
pip install pyobjc-framework-fileprovideruiVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the `FileProviderUI` framework and access a common class, `FPUIActionExtensionContext`, to print its description. This verifies the successful loading and bridging of the framework. This script should be run on macOS.
Upgrade to Python 3.10 or newer. Check `requires_python` in `pyproject.toml` or PyPI for the specific version range.
If subclassing Objective-C classes, consider using the `SomeClass(...)` instantiation pattern introduced in PyObjC 10.3 instead of `alloc().init...()`. If implementing a custom `__new__`, ensure it correctly handles object creation and delegates to super if necessary, or upgrade to 10.3.1+ if relying on `__init__` with a custom `__new__`.
If using Python 3.13+ with free-threading, thoroughly test concurrent Objective-C interactions. Consult PyObjC documentation for any specific guidelines on free-threading.
Add `pyobjc-core; sys_platform == "darwin"` and other `pyobjc-framework-*` packages with the same platform specifier to your project's dependencies.
Refer to Apple's documentation for the specific Objective-C class you intend to subclass and verify if it supports subclassing. Avoid subclassing classes marked as non-subclassable.
Update your code to avoid relying on the `isAlloc` attribute of `objc.selector`.