About Archive Tag Cloud Translations RSS

You are writing a comment about An Epic Introduction to PyObjC and Cocoa, here is a quick summary:

PyObjC is one of the most helpful projects I have ever used, but a number of individuals have been having trouble getting started with PyObjC on Leopard because the documentation is in a bit of a disarray. In particular, there didn't seem to be a comprehensive tutorial that could introduce a newcomer to all the important aspects of PyobjC, and that was completely up to date. Here is my attempt to fill that void. With a vengeance.


You are responding to this comment written by Will Larson on August 23rd 2008, 19:53.

Robert,

Sorry that things aren't working for you. Did you properly add import MWController to main.py? That portion of main.py should look like this:

# import modules containing classes required to start application and load MainMenu.nib
import MetaWindowAppDelegate
import MWController

If the import isn't added to main.py, then I'm pretty sure it won't be able to fill in the outlets and actions for you in IB. Filling in the outlets and actions manually isn't explicitly bad, but is usually a symptom of something going wrong.

Try Build and Going your application and open up the XCode console. Is it spewing any errors? If it isn't, you should be fine, but if it is there is likely a typo somewhere (or you forgot the import in main.py, I do that literally every time I add a file, so I won't judge you for it ;).

Part two should be published in the next couple of hours.


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")