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 Charles Romestant on November 20th 2008, 10:00.

Hello, first of all, thank you for this, i ve been looking for soemthing like this for a while noe.

Now on to business, i ve been testing this, and the only diference between my code and yours is the name, my controller is called FController instead of MWcontroller.

when i test the search field i get this error

Resources/FController.py", line 17, in search_ search_value = self.textField.stringValue() AttributeError: 'NoneType' object has no attribute 'stringValue'

Which i suspect is a problem in linking the xib object "textfield" with the oython controller...

What do you think it could be? So far i ve only completed the first part of this.

I tried checking wether the field was named textField but all I found was TextField ( in using the inspector window, but i might be wrong since i m only starting), then itried looking in the inspector window for a method or access method called stringValue, did not find it either, closest thing i found was in clicking mainMenu.xib(english) window, then on Window(window)>content View> Text Field and the going into the fifth tab of the inspector i found under Received Actions a : takeStringValueFrom but i m guessing this is not it.

thank you for the help in advance.


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")