• 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: Delegate for Double Click in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delegate for Double Click in NSTableView


  • Subject: Re: Delegate for Double Click in NSTableView
  • From: Marco Scheurer <email@hidden>
  • Date: Mon, 4 Mar 2002 17:45:58 +0100

On Sunday, March 3, 2002, at 04:35 pm, Andy Lee wrote:
At 4:17 PM +0100 3/3/02, Lukasz Kuczborski wrote:
What is the delagate method used when you double click in NSTableView's row?

There isn't one. To set a table view's double-click behavior, use -setDoubleAction:. It's described, a bit sketchily, in the class doc for NSTableView. You can see how it's used in the "SimpleBrowser" example code. Basically, -setDoubleAction: expects a selector for a method of the form

- (void)myDoubleAction:(id)sender

where "sender" will the be NSTableView itself when this method is invoked.

And the message will be sent to the NSTableView's target, not its delegate.

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Delegate for Double Click in NSTableView (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: linking a darwin library into a project builder project
  • Next by Date: How to get the list of registered DO names
  • Previous by thread: Re: Delegate for Double Click in NSTableView
  • Next by thread: Re: cocoa file paths, / or :
  • Index(es):
    • Date
    • Thread