On 4 Feb 2009, at 4:45 am, David Blanton wrote:

I have an NSMatrix (sub-classed) of NSImage cells. I set the appropriate tool tip for each cell. When scrolling the matrix using the knob or scroll buttons the tool tips are fine. When scrolling the matrix using the wheel on the mouse the tool tips are incorrect. Touching the knob after scrolling with the mouse wheel brings the tool tips back into sync.

Is there a method to call after the user scrolls the matrix with the mouse wheel to bring everything back into sync?


I don't know if there is - a quick scan of the docs for the class doesn't reveal anything, but I just tried this with an unsubclassed NSMatrix, and it works fine. That would suggest that something in your subclass is causing this.

Why are you subclassing? Typically I have found that custom appearance/ behaviour of an NSMatrix is achievable using custom cells, rather than subclassing the matrix itself.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to