• 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: Copy and Paste of rows in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Copy and Paste of rows in a NSTableView
      • From: Luke Adamson <email@hidden>
  • Prev by Date: RE: Double clicking in NSOutlineView
  • Next by Date: Re: NSSavePanel with a Sheet, strange callBack definition
  • Previous by thread: Re: Copy and Paste of rows in a NSTableView
  • Next by thread: Re: Copy and Paste of rows in a NSTableView
  • Index(es):
    • Date
    • Thread