• 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: NSTableView delete multiple selected rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView delete multiple selected rows


  • Subject: Re: NSTableView delete multiple selected rows
  • From: Enigmarelle Development <email@hidden>
  • Date: Sat, 15 Dec 2001 13:54:58 -0500

On Saturday, December 15, 2001, at 05:37 AM, Mike Shields wrote:

How about this? This is tested in that I know it works for a limited set of test cases. YMMV.
It easily handles undo. Implement this in your table delegate and hook up removeSelectedRows: to some sort of menu or button.
(code snipped)

I got this working and not removing duplicates by using -(void)removeObjectIdenticalTo:(id)anObject instead of just removeObject. Of course, this probably would have also worked with my first solution, but I have undo now - thanks! :)

-john c. warner
enigmarelle development
http://www.enigmarelle.com/


References: 
 >Re: NSTableView delete multiple selected rows (From: Mike Shields <email@hidden>)

  • Prev by Date: Re: Newbie SQL question...
  • Next by Date: Re: Newbie SQL question...
  • Previous by thread: Re: NSTableView delete multiple selected rows
  • Next by thread: _NSKeyboardFocusClipView? and why do they get left lying around?
  • Index(es):
    • Date
    • Thread