Re: How to trap for the delete key in NSOutlineView?
Re: How to trap for the delete key in NSOutlineView?
- Subject: Re: How to trap for the delete key in NSOutlineView?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 20 Jun 2005 23:48:58 +0100
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.
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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