Re: NSMatrix, scroll wheel and tool tips
Re: NSMatrix, scroll wheel and tool tips
- Subject: Re: NSMatrix, scroll wheel and tool tips
- From: Graham Cox <email@hidden>
- Date: Wed, 4 Feb 2009 10:28:00 +1100
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 (email@hidden)
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:
This email sent to email@hidden