Hello,
I have NSTextField and some views(NSTableView etc).
I want interrupt keydown event when NSTextField is not first responder to input
the key to NSTextField.
I wrote keyDown: method of my NSWindowController class like below.
- (void)keyDown:(NSEvent *)event
{
// IBOutlet NSTextField* myInput;
if ([[self window] firstResponder] != myInput) {
[[self window] makeFirstResponder:myInput]; // to change
keyView
[[self window] sendEvent:event];
// to process keydown event
}
}
This works well when keyboard layout is US.
But when Japanese inputmethod is on, EXC_BAD_ACCESS on CopyRgn of
GetPortVisionRegion of CTextensionDisplay::Focus… is occur.
Does anyone have any idea?
--
imai asato
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]