Re: NSTrackingArea message lag
Re: NSTrackingArea message lag
- Subject: Re: NSTrackingArea message lag
- From: Graham Cox <email@hidden>
- Date: Thu, 26 Jun 2008 17:19:05 +1000
Why do you need to use tracking areas? I doubt that they are designed
to handle hundreds of small regions. If you are dragging within the
view, just hit-detect the rects yourself and mark them as needing
update. If you need that to happen with just the mouse passing over
the view (button not pressed) you can turn on mouseMoved: events and
do the same thing.
Tracking events are awkward at the best of times, and are mostly
intended for cursor management. I think you'd find a more conventional
approach a lot more fruitful.
hth,
Graham
On 26 Jun 2008, at 4:11 pm, Markus Spoettl wrote:
Hello List,
I have a custom NSView that draws a number of rectangles of
different heights, overlapping 1 pixel on the left and right edge.
Each rectangle gets its own tracking area
_______________________________________________
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