From: Arno P. <ar...@pu...> - 2011-03-26 16:55:54
|
I agree with you that (1) the name of a class/method should reflect its semantics and (2) we should stick to the official API as much as possible. In light of this, I also opt for the first option I mentioned NSObject.performSelectorOnMainThread(NSSelector). Arno On 3/26/11 3:46 AM, Panayotis Katsaloulis wrote: > > On Mar 25, 2011, at 3:19 AM, Arno Puder wrote: > >> >> I guess the question boils down to the way to define the callback in >> Java. Introduce a new interface (NSSelector) or use existing Java >> interface (Runnable)? The method in question is >> NSObject.performSelectorOnMainThread(). Considering the name of the >> method, it might be awkward to pass a runnable. Perhaps renaming the >> method to NSObject.performRunnableOnMainThread() although it doesn't >> exists on the Objective-C side. >> >> So, the options are: >> >> 1. NSObject.performSelectorOnMainThread(NSSelector) > > I am actually more in favor of this solution, because it is similar (or practically the same) with NSTimerDelegate > >> 2. NSObject.performSelectorOnMainThread(Runnable) >> 3. NSObject.performRunnableOnMainThread(Runnable) > > I am afraid that this is not standard and nowhere documented, and I am not really in favor for introducing non-existive API. > > > More importantly though, it is required the others to express their opinion. > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |