Re: NSTableView delete multiple selected rows
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/