| Computers Forum Index » Computer Languages (Objective-C) » NSCell and Mouse Events... |
|
Page 1 of 1 |
|
| Author |
Message |
| Chad... |
Posted: Mon Jun 15, 2009 5:33 pm |
|
|
|
Guest
|
I'm trying to track mouse events on each cells in NSTableView.
Specifically the mouseEntered and mouseExited events.
Does anybody have any sample code on how to implement this?
Thanks in advance,
Chad |
|
|
| Back to top |
|
|
|
| Gregory Weston... |
Posted: Mon Jun 15, 2009 9:45 pm |
|
|
|
Guest
|
In article
<bd5d4a22-75d7-4996-a1e3-28e5d85c6bd3 at (no spam) r33g2000yqn.googlegroups.com>,
Chad <chadwtaylor at (no spam) gmail.com> wrote:
Quote: I'm trying to track mouse events on each cells in NSTableView.
Specifically the mouseEntered and mouseExited events.
Does anybody have any sample code on how to implement this?
Thanks in advance,
Chad
Cells aren't views. You'll have to make some effort to do this on your
own.
The naive option is to capture mouseMoved: events and work out which
cell is under the mouse. More work, but also much less resource
intensive once done, is to use tracking rectangles which let you define
arbitrary portions of a view to receive enter/exit messages.
--
I saw a truck today that had "AAA Batteries / Delivered and Installed" on the
side. My first thought was: That's a really weird business model. How many
inept people have urgent need of skinny little battery cells? |
|
|
| Back to top |
|
|
|
| Preston... |
Posted: Mon Jul 06, 2009 1:57 am |
|
|
|
Guest
|
On 2009-06-15 11:33:10 -0600, Chad <chadwtaylor at (no spam) gmail.com> said:
Quote: I'm trying to track mouse events on each cells in NSTableView.
Specifically the mouseEntered and mouseExited events.
Does anybody have any sample code on how to implement this?
Thanks in advance,
Chad
http://developer.apple.com/samplecode/PhotoSearch/index.html |
|
|
| Back to top |
|
|
|
|