login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

We’ll see how to examine Mail’s private API, load a ... and use that plugin to extend Mail’s behavior. This tu... PyObjC, the Python<->Objective-C bridge. You could just ... Objective-C, but I prefer to work in Python. The PyObjC ... wonderful j

Tales from the Loonybin » Demystifying Mail.app Plugins – A Tutorial
http://www.bazza.com/~eaganj/weblog/2006/03/29/demystifying-mail-app-plugins/

Categories

/Channels/techie/desktop

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

We’ll see how to examine Mail’s private API, load a plugin into Mail, and use that plugin to extend Mail’s behavior. This tutorial uses PyObjC, the Python<->Objective-C bridge. You could just as easily use Objective-C, but I prefer to work in Python. The PyObjC folks have done a wonderful job and deserve a lot of credit. Just remember that an Objective-C message of the form doSomethingWithAnObject: obj1 andAnother: obj2 gets translated into PyObjC as doSomethingWithAnObject_andAnother_(obj1, obj2) There should be one underscore for each colon. Otherwise, it’s pretty much the same as in Objective-C.

HTML

We&#x2019;ll see how to examine Mail&#x2019;s private API, load a plugin into Mail, and use that plugin to extend Mail&#x2019;s behavior. This tutorial uses PyObjC, the <a href="http://pyobjc.sf.net">Python&lt;-&gt;Objective-C bridge</a>. You could just as easily use Objective-C, but I prefer to work in Python. The PyObjC folks have done a wonderful job and deserve a lot of credit. Just remember that an Objective-C message of the form <tt>doSomethingWithAnObject: obj1 andAnother: obj2</tt> gets translated into PyObjC as <tt>doSomethingWithAnObject_andAnother_(obj1, obj2)</tt> There should be one underscore for each colon. Otherwise, it&#x2019;s pretty much the same as in Objective-C.