[Pyobjc-dev] objc.error: No forwarder for signature @@
Brought to you by:
ronaldoussoren
From: Steven D. A. <st...@ne...> - 2002-10-24 05:52:46
|
When trying to do a simple program, I discovered the following error, which I entered line for line in the python interpreter. >>> import sys >>> import os.path >>> sys.path.insert(0, os.p>>> >>> >>> ath.join(sys.path[0], "pyobjc")) >>> import objc >>> import Foundation >>> import AppKit >>> class HelloWorld(Foundation.NSObject): ... def sayIt(): ... self.text = "Hello World" ... No IMP for signature @@ Traceback (most recent call last): File "<stdin>", line 1, in ? objc.error: No forwarder for signature @@ I tracked this down to the quoted text being the problem. If the sayIt() function doesn't include quoted text (either single- or double-quotes), the program doesn't raise an exception like this. I am using the CVS version of the software, downloaded a few days ago. -- |