Python 和 Objective-C 的交互接口 PyObjC
- 授权协议: MIT
- 开发语言: Objective-C Python
- 操作系统: OS X
- 软件首页: https://pythonhosted.org/pyobjc/
- 软件文档: https://pythonhosted.org/pyobjc/
软件介绍
PyObjC 旨在为 Python 和 Objective-C 两种语言之间提供交互的接口。Python 语言可以通过PyObjC来使用已有的Objective-C的代码,反过来Objective-C也可以利用Python语言的一些功能。
PyObjC最主要的用处是在 Mac OS X 系统下使用纯Python语言来开发 Cocoa GUI 应用程序。
示例代码:
class MyClass(NSObject): def init(self): """ Designated initializer for MyClass """ # ALWAYS call the super's designated initializer. # Also, make sure to re-bind "self" just in case it # returns something else, or even None! self = objc.super(MyClass, self).init() if self is None: return None self.myVariable = 10 # Unlike Python's __init__, initializers MUST return self, # because they are allowed to return any object! return self class MyOtherClass(MyClass): def initWithOtherVariable_(self, otherVariable): """ Designated initializer for MyOtherClass """ self = objc.super(MyOtherClass, self).init() if self is None: return None self.otherVariable = otherVariable return self myInstance = MyClass.alloc().init() myOtherInstance = MyOtherClass.alloc().initWithOtherVariable_(20)
Web信息架构(第3版)
Peter Morville、Louis Rosenfeld / 陈建勋 / 电子工业出版社 / 2008年8月 / 85.00
本书涵盖了信息架构基本原理和实践应用的方方面面。全书共7个部分,包括信息架构概述、信息架构的基本原理、信息架构的开发流程和方法论、信息架构实践、信息架构与组织、两个案例研究,以及参考资料清单。 本书兼具较高的理论价值和实用价值,曾被Web设计领域多本书籍重点推荐,是信息架构领域公认的经典书,不论新手还是专家都能各取所需。本书可供Web设计与开发者、Web架构师、网站管理者及信息管理相关人员参......一起来看看 《Web信息架构(第3版)》 这本书的介绍吧!
