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.





![Was Beethoven Autistic?
I was trying to figure out if Ludwig van Beethoven was a savant. Leo Tolstoy’s 1897 essay, Что такое искусство? (“What Is Art?”) criticizes Betthoven’s 9th symphony as lacking a strong emotional communication, or as he wrote “emotional infection,” and thus was not true art. If Beethoven was autistic, as some speculate, then he would have trouble with metaphor and emotion, which would provide support for Tolstoy’s argument.
How was I to analyze Beethoven’s emotional or metaphoric agility? How better, I thought, than to read his personal writings. So, I stumbled across this book of his collected letters and short writings where I found his letter, written in 1812, a little girl of 8 or 10 years named Emilie. According to the notes, Emilie was such a fan of Beethoven that she sent him a letter along with a hand made pocket-book. His gracious reply illustrates a flawless use of emotion and metaphor to communicate his point.
“The true artist […] feels darkly how far he is from the goal; and though he may be admired by others, he is sad not to have reached the point to which his better genius only appears as a distant, guiding sun. I would, perhaps, rather come to you and your people, than to many rich folk who display inward poverty.”
To compare an artistic aspiration to a “distant, guiding sun” or regard the upperclass, of whom he often despised, as those who “display inward poverty” clearly indicate that Beethoven possessed a strong sense of metaphor and irony. His deep compliments to little Emilie’s character suggests that he was competent with ‘theory of mind’ to have some sense of how Emilie must have felt in order to send that letter. In light of these qualities, I conclude that Beethoven was most likely not autistic. As for Tolstoy, perhaps he should have consulted little Emilie before reaching his conclusion.
Beethoven, L. V., Kalischer, A. C., Shedlock, J. S. (1909). Beethoven’s letters: a critical edition : with explanatory notes, Volume 1. JM Dent & Co, London.
Tolstoy, Leo (1897). Что такое искусство? (“What Is Art?”)
Wearing, C. (2010). Autism, Metaphor and Relevance Theory. Mind \& Language, 25(2), 196-216.
Rundblad, G. & Annaz, D. (2010). The atypical development of metaphor and metonymy comprehension in children with autism. Autism, 14(1), 29.
Diaz, S. (2010). Understanding metaphors, irony and sarcasm in high functioning children with autism spectrum disorders: its relationship to theory of mind.](http://25.media.tumblr.com/tumblr_lcxgt9E9hI1qatecqo1_500.png)






