mouseDown: vs. keyDown:
mouseDown: vs. keyDown:
- Subject: mouseDown: vs. keyDown:
- From: Daniel Todd Currie <email@hidden>
- Date: Wed, 7 Jan 2004 04:46:20 -0800
In a custom subclass of NSTextField, I have the following code:
- (void)keyDown:(NSEvent *)theEvent
{
NSLog(@"keyDown");
}
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog(@"mouseDown");
}
When I click in the text field, the Run Log prints "mouseDown", but
when I press a key while the text field is first responder, nothing
happens. What gives?
TIAA.
// Daniel Currie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.