Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Tracking the mouse in a cell in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking the mouse in a cell in a NSTableView




On Jul 31, 2006, at 2:56 PM, Óscar Morales Vivó wrote:

I've noticed that the default behavior when tracking the mouse in a table view is for the tracking cell to stop tracking once the mouse gets out of its bounds.

This really depends on the cell. NSButtonCell, for instance, does not do this. What kind of cell are you using?



The problem is that I haven't found any reasonable way to change that (short of subclassing NSTableView, which is something I'll eventually have to do but would rather delay as much as possible).

You may have to modify prefersTrackingUntilMouseUp in your cell. You will not need to subclass TV for ths.


-corbin


Is there any good way to change that tracking behavior? (similar to the options that NSMatrix offers). If I've missed something obvious let me know. Otherwise suggestions for the less cumbersome way to do it would be welcome.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Tracking the mouse in a cell in a NSTableView (From: Óscar Morales Vivó <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.