• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handling Delete Key Events in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Screenshots using Cocoa
  • Next by Date: Re: find what type of object a variable belongs to
  • Previous by thread: Handling Delete Key Events in NSOutlineView
  • Next by thread: find what type of object a variable belongs to
  • Index(es):
    • Date
    • Thread