Re: Handling Delete Key Events in NSOutlineView
Re: Handling Delete Key Events in NSOutlineView
- Subject: Re: Handling Delete Key Events in NSOutlineView
- From: Matt Neuburg <email@hidden>
- Date: Sun, 25 Sep 2005 11:00:40 -0700
- Thread-topic: Handling Delete Key Events in NSOutlineView
On Sat, 24 Sep 2005 19:37:47 -0400, Eric Brunstad <email@hidden>
said:
>As I have little to no
>experience with Carbon, It would greatly appreciate it if someone
>could give me some sample code showing how to see if the delete key
>is pressed from within keyDown:.
One approach is like this (in the NSOutlineView subclass):
- (void)keyDown:(NSEvent*)theEvent {
if ([[theEvent characters] isEqualToString: @"\177"]) {
// whatever;
} else {
[super keyDown: theEvent];
}
}
I'm not seeing what this has to do with Carbon, though.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden