src/macosx/native/sun/awt/AWTView.m

Print this page

        

*** 666,676 **** } - (void) setDropTarget:(CDropTarget *)target { self._dropTarget = target; ! [ThreadUtilities performOnMainThread:@selector(controlModelControlValid) onObject:self._dropTarget withObject:nil waitUntilDone:YES awtMode:YES]; } /******************************** BEGIN NSDraggingSource Interface ********************************/ - (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)flag --- 666,676 ---- } - (void) setDropTarget:(CDropTarget *)target { self._dropTarget = target; ! [ThreadUtilities performOnMainThread:@selector(controlModelControlValid) on:self._dropTarget withObject:nil waitUntilDone:YES]; } /******************************** BEGIN NSDraggingSource Interface ********************************/ - (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)flag
*** 1213,1223 **** { #ifdef IM_DEBUG fprintf(stderr, "AWTView InputMethod Selector Called : [abandonInput]\n"); #endif // IM_DEBUG ! [ThreadUtilities performOnMainThread:@selector(markedTextAbandoned:) onObject:[NSInputManager currentInputManager] withObject:self waitUntilDone:YES awtMode:YES]; [self unmarkText]; } /******************************** END NSTextInputClient Protocol ********************************/ --- 1213,1223 ---- { #ifdef IM_DEBUG fprintf(stderr, "AWTView InputMethod Selector Called : [abandonInput]\n"); #endif // IM_DEBUG ! [ThreadUtilities performOnMainThread:@selector(markedTextAbandoned:) on:[NSInputManager currentInputManager] withObject:self waitUntilDone:YES]; [self unmarkText]; } /******************************** END NSTextInputClient Protocol ********************************/