Re: Copy and Paste of rows in a NSTableView
Re: Copy and Paste of rows in a NSTableView
- Subject: Re: Copy and Paste of rows in a NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 12 Jun 2001 11:35:49 +0200
On mardi, juin 12, 2001, at 08:38 AM, Luke Adamson wrote:
I've finally found a solution using the First Responder but is there
not a solution using the delegate of the NSTableView ?
Using the firstResponder is the "correct" mechanism for doing this.
The object which will respond to the copy:/paste: method will very
likely be the delegate (and data source) of the NSTableView (unless
you're working with a contrived, or complex case). But, it will be in
the responder chain because it will also be the delegate of the window
which "contains" the table view (the main window's delegate is in the
responder chain by definition).
complex case here. The main controller is the controller of the window
and there are secondary controllers for multiple NSTabView contents.
But since I know the hierarchy of controller, going through the main
controller is not a bug problem. Just thought there was a easier
solution.