• 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 do I detect a click in a tableView cell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I detect a click in a tableView cell?


  • Subject: Re: how do I detect a click in a tableView cell?
  • From: Allan Odgaard <email@hidden>
  • Date: Mon, 22 Mar 2004 00:23:03 +0100

On 21. Mar 2004, at 23:17, Denis Stanton wrote:

I tried putting my custom mouseDown method into my custom ChartCell
class, expecting it to get called when I clicked in one of these cells.

The table view only create one cell (pr. column) and re-use that cell (to save memory).

So you need to intercept the click in the table view -- and it might be that setting yourself as target for the action message is enough. When you receive the action message then you can send clickedRow and/or clickedColumn to the table view to get info about which row/column the user clicked.
_______________________________________________
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.


  • Follow-Ups:
    • Re: how do I detect a click in a tableView cell?
      • From: Denis Stanton <email@hidden>
    • Re: how do I detect a click in a tableView cell?
      • From: Denis Stanton <email@hidden>
References: 
 >how do I detect a click in a tableView cell? (From: Denis Stanton <email@hidden>)

  • Prev by Date: Re: NSMutableArray problems
  • Next by Date: Re: Renaming a project destroys it?
  • Previous by thread: how do I detect a click in a tableView cell?
  • Next by thread: Re: how do I detect a click in a tableView cell?
  • Index(es):
    • Date
    • Thread