Re: [Pyobjc-dev] Performing selectors example?
Brought to you by:
ronaldoussoren
From: Luc H. <lu...@ho...> - 2009-11-08 10:00:42
|
On 8 nov. 2009, at 09:18, James Trankelson wrote: > class MyClass (Foundation.NSObject): > def callback(self, arg): > print "Test!" > def setup(self, arg): > self.pyobjc_performSelectorOnMainThread_withObject_('test', 44) Well, you are trying to call a 'test' selector which clearly does not exist, hence the 'unrecognized selector'. You probably want: self.pyobjc_performSelectorOnMainThread_withObject_('callback', 44) -- Luc Heinrich - lu...@ho... |