You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os.PathLike is similar to Cocoa's use of NSURL to represent paths. Proxy os.PathLike to NSURL to allow using pathlib.Path values where framework's expect a file URL.
NSSecureCoding could be an issue here, NSURL implements this protocol whereas PyObjC cannot claim to support that protocol for arbitrary Python objects. It should be possible to do this for pathlib's classes though (I'm thinking of encoding those basically as the base NSURL, leaving the pickle-based implementation of NSCoding for other PathLike classes).
The text was updated successfully, but these errors were encountered:
os.PathLike is similar to Cocoa's use of NSURL to represent paths. Proxy os.PathLike to NSURL to allow using
pathlib.Path
values where framework's expect a file URL.NSSecureCoding could be an issue here, NSURL implements this protocol whereas PyObjC cannot claim to support that protocol for arbitrary Python objects. It should be possible to do this for pathlib's classes though (I'm thinking of encoding those basically as the base NSURL, leaving the pickle-based implementation of NSCoding for other PathLike classes).
The text was updated successfully, but these errors were encountered: