Re: how do I detect a click in a tableView cell?
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 03:32:22 +0100
On 22. Mar 2004, at 3:20, Denis Stanton wrote:
[...] I'm looking at the classes above NSTableView, but I can't find
anything to tell me the point location of the click.
Yes, that would seem to be missing -- the reason is that this
functionality is conveniently implemented by NSApplication. You can
send currentEvent to your NSApp to receive it. Then use
locationInWindow (NSEvent) and convertPoint:fromView: (NSView) to
convert the point to be relative to your table view.
** Cocoa FAQ: <
http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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.