• 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
Double clicking rows vs. column headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Double clicking rows vs. column headers


  • Subject: Double clicking rows vs. column headers
  • From: Paul Ferguson <email@hidden>
  • Date: Wed, 20 Feb 2002 09:29:31 -0800

I am using -setDoubleAction: in an NSTableView controller to take action when a user double clicks a row. All cells in the table are non-editable, and users cannot select columns. (It is similar to the main window in Mail.app)

This works fine when a user double clicks a row. My problem is that if the user double clicks a column header, my controller's action method is also called, and I can't figure out how to distinguish between a double-click in a row, and a double-click in a column header. In both cases, [sender selectedColumn] returns -1, and [sender selectedRow] returns the most recently selected row, or -1 if no row is selected.

Thanks,

<fergy/>
_______________________________________________
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: 
 >Compiler skipping code (From: Daniel Byer <email@hidden>)

  • Prev by Date: Re: Please explain this error message...
  • Next by Date: Re: NSLayoutManager question
  • Previous by thread: Re: Compiler skipping code
  • Next by thread: Cut & past support in NSTableView
  • Index(es):
    • Date
    • Thread