• 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: activating Delete menu item through binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: activating Delete menu item through binding


  • Subject: Re: activating Delete menu item through binding
  • From: Koen van der Drift <email@hidden>
  • Date: Mon, 16 Apr 2012 19:18:01 -0400

Still a bit confused here. My tableview from which I want to delete
items is controlled by an NSViewController, and populated by an
NSArrayController that is again hooked up to my CoreData model.  The
layout is the typical iTunes type layout, an outlineview on the left,
a tableview in the middle and detail views on the right.

As you can do in iTunes, I'd like the delete key and menu item to be
mapped to remove items from my model that are selected in the table
view. I tried making the view controller an NSResponder, but then
hitting the delete key starts editing the table cell.

Making the view controller first responder didn't work either.

Any suggestions what I should do ?


Thanks again,

- Koen.


On Sun, Apr 15, 2012 at 3:06 PM, Quincey Morris
<email@hidden> wrote:
> On Apr 15, 2012, at 11:53 , Koen van der Drift wrote:
>
> Interestingly, the 'Select All' menu item that sits just under the Delete
> item (and both of them were already present when I started my project) works
> 'out of the box'  for my NSTableView, I did not set any responders or do any
> validation, etc.
>
>
> Because NSTableView implements the 'selectAll:' action, and a table view
> *is* a responder and it *is* in the responder chain.
>
> (The reason for the difference is, of course, that the table view can select
> things using information it has available, but it can't delete things on its
> own.)
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: activating Delete menu item through binding
      • From: Quincey Morris <email@hidden>
References: 
 >activating Delete menu item through binding (From: Koen van der Drift <email@hidden>)
 >Re: activating Delete menu item through binding (From: Quincey Morris <email@hidden>)
 >Re: activating Delete menu item through binding (From: Koen van der Drift <email@hidden>)
 >Re: activating Delete menu item through binding (From: Quincey Morris <email@hidden>)

  • Prev by Date: Resizing UITableView will keeping content scrolled to bottom
  • Next by Date: Re: Resizing UITableView will keeping content scrolled to bottom
  • Previous by thread: Re: activating Delete menu item through binding
  • Next by thread: Re: activating Delete menu item through binding
  • Index(es):
    • Date
    • Thread