Re: Tracking rects, tracking areas and events

2009-04-21 Thread Erik Österlund
Apr 21, 2009 kl. 1:40 AM skrev Quincey Morris: It's hard to say in general. NSTrackingArea is fairly easy to get started with, so I'd suggest you just experiment to find the best approach for you. Thanks for your help! I'll just mix around a little and see what happens. -Fisk

Re: Tracking rects, tracking areas and events

2009-04-20 Thread Quincey Morris
On Apr 20, 2009, at 16:03, Erik Österlund wrote: So is there any difference at all between using NSPointInRect on the mouseMoved: event instead of using tracking rects? I mean, the events would have been sent anyway, if I understood this correctly. Then it would also be much easier to dynam

Re: Tracking rects, tracking areas and events

2009-04-20 Thread Erik Österlund
Apr 21, 2009 kl. 12:07 AM skrev Quincey Morris: 2. If I register a tracking rect, will the mouseMoved: message keep on spamming, or will only mouseEntered: and mouseExited: be sent? Tracking rects have no effect on the production of mouseMoved messages. So is there any difference at al

Re: Tracking rects, tracking areas and events

2009-04-20 Thread Quincey Morris
On Apr 19, 2009, at 15:20, Erik Österlund wrote: 1. What is the difference between tracking areas and tracking rects? Tracking rects are available pre-Leopard. NSTrackingArea was introduced in Leopard to fix significant problems that made tracking rects pretty much useless for anything but

Tracking rects, tracking areas and events

2009-04-20 Thread Erik Österlund
I have a few questions about the subject. 1. What is the difference between tracking areas and tracking rects? 2. If I register a tracking rect, will the mouseMoved: message keep on spamming, or will only mouseEntered: and mouseExited: be sent? If I understood this correctly, all three are ac