• 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: Responding to a double-click in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Responding to a double-click in a table


  • Subject: Re: Responding to a double-click in a table
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 28 Aug 2006 15:53:00 -0500


On Aug 28, 2006, at 3:21 PM, Remco Poelstra wrote:

I've a tableview (1 column) which displays filename's. I want to be able to open the file when the user double-clicks on a row. I figured out that I would need the mouseDown: method from the NSCell. Therefor I need to subclass it in IB.
To instantiate it, I have to drag my new class in IB to the pallet and from there add it to my user interface.
The question now is: How do I add that cell to my table?
Or am I completely wrong here?

Check out NSTableView's setDoubleAction:

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Responding to a double-click in a table (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Re: changing "document" terminology for AppleScript support
  • Next by Date: Re: efficient searching of arrays
  • Previous by thread: Responding to a double-click in a table
  • Next by thread: NSSearchField Case Insensitive
  • Index(es):
    • Date
    • Thread