public QTMovieView create() { return Foundation.callOnMainThread(new Callable<QTMovieView>() { public QTMovieView call() throws Exception { return Rococoa.create("QTMovieView", QTMovieView.class); //$NON-NLS-1$ }}); } }
private Object sendOnThisOrMainThread(Method method, final ID id, final String selectorName, final Class<?> returnType, final Object... args) { if (callAcrossToMainThreadFor(method)) { return Foundation.callOnMainThread( new Callable<Object>() { public Object call() { return Foundation.send(id, selectorName, returnType, args); }}); } else { return Foundation.send(id, selectorName, returnType, args); } }