• 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: cocoa-dev digest, Vol 1 #1021 - 11 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 1 #1021 - 11 msgs


  • Subject: Re: cocoa-dev digest, Vol 1 #1021 - 11 msgs
  • From: Mike Davis <email@hidden>
  • Date: Sat, 29 Dec 2001 08:23:17 -0500

On Saturday, December 29, 2001, at 01:14 AM, cocoa-dev-
email@hidden wrote:

Date: Fri, 28 Dec 2001 23:33:12 +0100
Subject: Re: Clear or delete?
Cc: email@hidden
To: Dan Wood <email@hidden>
From: Thomas Lachand-Robert <email@hidden>

Le vendredi 28 dicembre 2001, ` 11:12 , Dan Wood a icrit :


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.


Thanks, I did that too. But I still get a beep when I use the delete key
in the OutlineView. Is there something more to do?

I've done it by subclassing the table view and implementing clear: there. I also set the view to be firstResponder.

If you subclass the table view you can also get it to process other Edit menu messages as firstResponder, including menu validation.




Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.


  • Prev by Date: Re: radio buttons
  • Next by Date: Re: Cursor tracking rects
  • Previous by thread: Re: radio buttons
  • Next by thread: Testing, Testing
  • Index(es):
    • Date
    • Thread