On Jan 4, 2005, at 8:14 PM, whamoo wrote:
On 05/gen/05, at 01:57, Bob Ippolito wrote:
from Foundation import NSLog
from PyObjCTools import NibClassBuilder
NibClassBuilder.extractClasses("MainMenu")
class provaAppDelegate(NibClassBuilder.AutoBaseClass):
def applicationDidFinishLaunching_(self, aNotification):
NSLog( "Application did finish launching." )
I have added:
def change_(self, sender):
print "hello"
Build all, launch and read this:
Could not connect the action change: to target of class helloworldAppDelegate
Well the class names you are talking about are different from the class name defined in that Python file. Where the heck is this "prova" coming from? I have no idea what you are doing or not doing. I am sorry but I do not know how to help you.
Note that there was a bug at some point with Xcode projects that have a space in their name, but I thought that got fixed. I rarely ever use the Xcode template personally, they mostly just get in my way and cause extra maintenance hassle.
Ok, i've find the problem, but look very strange, i've deleted this two line:
def applicationDidFinishLaunching_(self, aNotification):
NSLog( "Application did finish launching." )
And all works fine, but now, i can't add new function to the class because xcode tell me indentation error (i'm sure there isn't), bof, maybe template and xcode integration have some bug, thanks a lot for support.
This is not a bug in the integration, and it *is* an indentation error. You are mixing spaces and tabs. Don't do that. Turn tabs off in Xcode. I guess we should document this somewhere.
-bob
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig