Python访问Objective-C类库Pyobjus.zip

时间:2022-08-07 14:12:38
【文件属性】:
文件名称:Python访问Objective-C类库Pyobjus.zip
文件大小:202KB
文件格式:ZIP
更新时间:2022-08-07 14:12:38
开源项目 pyobjus 模块可以让你在 Python 中访问 Objective-C 的类。使用 Objective-C 的运行时反射技术。示例代码:from pyobjus import ObjcClass, ObjcMethod, MetaObjcClass class NSString(ObjcClass):     __objcclass__ = 'NSString'     __metaclass__ = MetaObjcClass     init = ObjcMethod('@16@0:8')     substringFromIndex_ = ObjcMethod('@24@0:8Q16') a = NSString() a.init() print a.substringFromIndex_(6) 标签:Pyobjus
【文件预览】:
pyobjus-master
----MANIFEST.in(59B)
----setup_sdist.py(2KB)
----examples()
--------osx_ios_sysinfo.py(1KB)
--------background_transfer.py(5KB)
--------ball-example()
--------ns_mutable_dictionary.py(1007B)
--------ns_dictionary.py(636B)
--------ns_array.py(575B)
--------objc_lib.m(301B)
--------unions.py(2KB)
--------using_autoclass.py(1KB)
--------unknown_type.py(4KB)
--------using_carray.py(16KB)
--------ns_mutable_array.py(1KB)
--------properties.py(2KB)
--------classes_and_selectors.py(1011B)
--------using_dylib_manager.py(886B)
--------ns_alert.py(513B)
--------pointer_to_type.py(2KB)
--------delegate.py(1KB)
--------using_literals.py(2KB)
----.travis.yml(2KB)
----LICENSE(1KB)
----tools()
--------buildprotocols.py(6KB)
----setup.py(2KB)
----README.md(3KB)
----Makefile(540B)
----objc_classes()
--------test()
--------aux()
----docs()
--------source()
--------make.bat(5KB)
--------Makefile(5KB)
----tests()
--------test_nsstring.py(3KB)
--------test_delegate.py(4KB)
--------test_literals.py(940B)
--------test_ns_mutable_array.py(2KB)
--------test_unknown_types.py(1KB)
--------test_partial_load.py(506B)
--------test_nsobject.py(2KB)
--------test_nsvalue.py(3KB)
--------test_properties.py(2KB)
--------test_dereference.py(754B)
--------test_simple.py(498B)
--------test_carray.py(11KB)
--------test_union.py(1KB)
----.gitignore(127B)
----pyobjus()
--------pyobjus_conversions.pxi(26KB)
--------objc_py_types.py(8KB)
--------dylib_manager.py(10KB)
--------test.py.movetounit(8KB)
--------debug.pxi(359B)
--------__init__.py(45B)
--------common.pxi(5KB)
--------protocols.py(139KB)
--------consts()
--------pyobjus.pyx(39KB)
--------_runtime.h(1KB)
--------pyobjus_types.pxi(26KB)
--------type_enc.pxi(5KB)

网友评论