• 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: How to detect a single mouse click on a cell in a TableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect a single mouse click on a cell in a TableView?


  • Subject: Re: How to detect a single mouse click on a cell in a TableView?
  • From: Nicola Vitacolonna <email@hidden>
  • Date: Fri, 12 Apr 2002 10:28:50 +0200

On Thursday, April 11, 2002, at 12:35 , Nicola Vitacolonna wrote:

2) I also tried to make the column uneditable in IB and implement
table:didClickTableColumn:, but this is called when the user
double-clicks on the header too, which I definitely don't want to happen.

You can easily ignore that, can't you?

Well, I think I wrote something wrong. I tried table:didClickTableColumn. As far as I can understand, it is sent when the user clicks (not double-clicks) on the header (and not in other parts), so one can do some operation on a whole column (such as sorting based on the clicked column). So, it is not useful to my purpose.
The solution previously posted about using [table setAction:@selector(handleClickOnTableItem)] is just what I needed.

Another solution might be usign an NSButtonCell as the data cell for the appropriate column.

Yes, that's another way. I preferred using a string (such a checkmark symbol) instead of an NSButton just for aesthetic reasons.

Thank you!
Nicola
_______________________________________________
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: How to detect a single mouse click on a cell in a TableView? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: ever felt like a complete BONZO??
  • Next by Date: re: ever felt like a complete BONZO??
  • Previous by thread: Re: How to detect a single mouse click on a cell in a TableView?
  • Next by thread: Re: How to detect a single mouse click on a cell in a TableView?
  • Index(es):
    • Date
    • Thread