Re: Notifying when a key is pressed and perform default tasks.
Re: Notifying when a key is pressed and perform default tasks.
- Subject: Re: Notifying when a key is pressed and perform default tasks.
- From: Andrew Farmer <email@hidden>
- Date: Mon, 20 Aug 2007 16:55:00 -0700
On 20 Aug 07, at 16:40, Ricardo Diaz wrote:
How can a subclass of NSTextView notify when a key is pressed AND
do the thing it's supposed to do? (insert the glyph, space, tab,
move the insertion point)
Because I tried putting:
- (void)keyDown:(NSEvent *)theEvent
{
NSLog("Key pressed");
}
And it did post "Key pressed" but didn't insert the glyph. I wrote
this in TextViewSubclass.m
[super keyDown:theEvent] ?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden