I just started getting way into python. I just found out today that Apple has a bridge that connects python to Cocoa, the framework behind apple’s sexy GUIs. I’ve decided to share the following from Apple’s developer site:
While Cocoa applications are generally written in Objective-C, Python is a fully capable choice for application development. Python is an interpreted, interactive and object-oriented programming language, that provides higher-level features such as regular expressions and garbage collection, and it’s built into Mac OS X Tiger. Best of all, there’s little you need to sacrifice in order to gain Python’s flexibility and productivity, which are making this language increasingly popular. With Python, you still leverage the complete power and maturity of Cocoa, the capable project management of Xcode and the rapid interface development offered by Interface Builder. Today, you can build native, uncompromising, best-of-breed Mac OS X applications using only Python.
Python stands alone from Cocoa, as does Cocoa from Python. Between the two systems, enabling interoperability, stands PyObjC, the Python/Objective-C bridge.
PyObjC (pronounced pie-obz-see) is the key piece which makes it possible to write Cocoa applications in Python. It enables Python objects to message Objective-C objects as if they’re fellow Python objects, and likewise facilitates Objective-C objects to message Python objects as brethren.
-
deriso posted this
