[ pyobjc-Bugs-3585235 ] Typo in _pyobjc_performOnThread_

SourceForge.net <[email protected]> Wed, 07 Nov 2012 12:19:43 -0800
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
Bugs item #3585235, was opened at 2012-11-07 12:19
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=3585235&group_id=14534

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Typo in _pyobjc_performOnThread_

Initial Comment:
Every method defined in http://pyobjc.sourceforge.net/documentation/pyobjc-framework-Cocoa/threading-helpers.html is not functionally due to a typo in _pyobjc_performOnThread_ and _pyobjc_performOnThreadWithResult definitions:

@objc.namedSelector(b"_pyobjc_performOnThread:")
    def _pyobjc_performOnThread_(self, callinfo):

@objc.namedSelector(b"_pyobjc_performOnThreadWithResult:")
    def _pyobjc_performOnThreadWithResult_(self, callinfo):

However, methods refer to these methods using selector which lacks the trailing underscore:
self.performSelector_onThread_withObject_waitUntilDone_('pyobjc_performOnThread:', thread, (aSelector, arg), wait)

These lead the following exceptions to be raised:
ValueError: NSInvalidArgumentException - -[NSObject pyobjc_performOnThread:]: unrecognized selector sent to instance
ValueError: NSInvalidArgumentException - -[NSObject pyobjc_performOnThreadWithResult:]: unrecognized selector sent to instance

Patch is attached (produced by git with --no-prefix).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=3585235&group_id=14534

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d