• 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: How to trap for the delete key in NSOutlineView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to trap for the delete key in NSOutlineView?


  • Subject: Re: How to trap for the delete key in NSOutlineView?
  • From: Vince DeMarco <email@hidden>
  • Date: Mon, 20 Jun 2005 16:20:52 -0700


On Jun 20, 2005, at 3:48 PM, Theodore H. Smith wrote:

On 20 Jun 2005, at 23:31, Cameron Hayne wrote:


On 20-Jun-05, at 2:24 PM, Theodore H. Smith wrote:


But what I'm finding, is that for me to do just about any totally basic trivial thing, like detecting when I get a focus set to my control, or making the delete key actually delete the current row, I must subclass something.




I think this is probably a sign that you are "fighting the framework" or that you are trying to implement non-standard UI behaviour (which is not usually a desirable thing in a Mac application).




That is what you say. But I have to ask: Is deleting the currently selected row in a tableview, with the delete key, non-standard behaviour? You can do it in iTunes and Mail.


Is it possible to handle delete keys within a tableview without subclassing the tableview? That it something I do not know yet, but I have had one person tell me I'm supposed to subclass it to acheive this.

I don't think you have the information on what I am doing to say whether I am fighting the framework, or implementing non-standard behaviour. Just because I am questioning the framework, doesn't mean I'm fighting it. I might be questioning it and making good use of it like it is meant to be used, simultaneously. One does not necessarily exclude the other.

Everytime i have done this i have just subclassed TableView, just over ride keyDown: and handle it in some way.


yes the standard control should provide this, please file a bug.

Vince


_______________________________________________ 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
References: 
 >How to trap for the delete key in NSOutlineView? (From: "Theodore H. Smith" <email@hidden>)
 >Re: How to trap for the delete key in NSOutlineView? (From: Fritz Anderson <email@hidden>)
 >Re: How to trap for the delete key in NSOutlineView? (From: "Theodore H. Smith" <email@hidden>)
 >Re: How to trap for the delete key in NSOutlineView? (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Strange NSArray problem
  • Next by Date: Re: Strange NSArray problem
  • Previous by thread: Re: How to trap for the delete key in NSOutlineView?
  • Next by thread: Re: How to trap for the delete key in NSOutlineView?
  • Index(es):
    • Date
    • Thread