[Pyobjc-dev] [ pyobjc-Bugs-3585235 ] Typo in _pyobjc_performOnThread_
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2012-11-07 20:19:43
|
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 |