• 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: Clear or delete?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Follow-Ups:
    • Re: Clear or delete?
      • From: Thomas Lachand-Robert <email@hidden>
References: 
 >Clear or delete? (From: Thomas Lachand-Robert <email@hidden>)

  • Prev by Date: Re: Running a regular expression on an NSString
  • Next by Date: [ANN] CURLHandle 1.2 now available
  • Previous by thread: Clear or delete?
  • Next by thread: Re: Clear or delete?
  • Index(es):
    • Date
    • Thread