User Name
Password
AppleNova Forums » Programmer's Nook »

Unable to dynamically generate output from Xcode/Cocoa-Python


Register Members List Calendar Search FAQ Posting Guidelines
Unable to dynamically generate output from Xcode/Cocoa-Python
Thread Tools
billybobsky
BANNED
I am worthless beyond hope.
 
Join Date: May 2004
Location: Inner Swabia. If you have to ask twice, don't.
 
2008-01-21, 12:41

So I have walked through the example on Apple's developers site:

http://developer.apple.com/cocoa/pyobjc.html

I even downloaded the example file. It works correctly.

When I build a short version of this project with a single text field and a single output field, there is no dynamic generation of the text in the output field, in fact the method (or object) somemethod_ does not appear to be called at all. The program essentially sits there like a rock. I have checked all of my variables in Interface builder to ensure they match those from the example (i haven't rooted around in the menus at all, just the inspector).

What i want to do is count the characters dynamically in a scrolled text field. Oddly enough, I can get tkinter to do this readily, so why aren't my links working here? is there some other value i need to change besides binding the variable in interface inspector to the variable name in the python appdelegate -- the tutorial seems to suggest that this is all you need...
  quote
billybobsky
BANNED
I am worthless beyond hope.
 
Join Date: May 2004
Location: Inner Swabia. If you have to ask twice, don't.
 
2008-01-21, 23:44

ok... stupid bindings require me to use capitalization appropriately...

literally, i needed to capitalize only one letter....

ie change...

setinsert_

to

setInsert_
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools

« Previous Thread | Next Thread »

All times are GMT -5. The time now is 20:40.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova