Re: Clear or delete?
Re: Clear or delete?
- Subject: Re: Clear or delete?
- From: Dan Wood <email@hidden>
- Date: Fri, 28 Dec 2001 14:12:15 -0800
On Friday, December 28, 2001, at 12:55 PM, Thomas Lachand-Robert wrote:
Moreover this menu item is connected to an action "clear:" for
the first responder. I did implement this action in the main
controller of my window,
which is also the delegate of an outline view. So if I use
this menu while the outline view is selected, the corresponding
rows are removed by my action. However, if I just type the
delete key, I just get a beep.
Not only that, but the default IB connection is "clear:" as you
say, but the text widgets expect to respond to "delete:" instead.
I've already filed that with Apple as a bug.
What I did in my application, to make things consistent, was to
implement "delete:" and change the menu to send "delete:" to the
first responder, so that both text and my other items (such as
selected rows in a table) will respond to the same action.
--
Dan Wood
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/