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

Print this page

        

*** 664,674 **** } - (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 --- 664,674 ---- } - (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
*** 1211,1221 **** { #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 ********************************/ --- 1211,1221 ---- { #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 ********************************/