Re: NSCursor tracking areas

2014-07-24 Thread Quincey Morris
On Jul 24, 2014, at 14:35 , Cody Garvin wrote: > I think I’ll try your’s and Edward’s suggestion on attempt mouseEntered / > mouseMoved with a single tracking area. From one point of view, I would recommend *not* taking this approach, since it comes near to flailing, and that’s never a good wa

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
> On Jul 24, 2014, at 1:51 PM, Markus Spoettl wrote: > > On 24/07/14 15:37, Cody Garvin wrote: >> I then use cusrorUpdate:(NSEvent *)theEvent to change the cursor by iterating >> over theEvent’s converted point to the view and matching it with a drag point >> (I do this because in the future the

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
> On Jul 24, 2014, at 7:40 AM, Ken Thomases wrote: > > On Jul 24, 2014, at 8:37 AM, Cody Garvin wrote: > >> I use updateTrackingAreas to remove all the tracking areas, then adding new >> ones (same rects as the drag points) with the options: >> NSTrackingActiveInActiveApp | NSTrackingCursorU

Re: NSCursor tracking areas

2014-07-24 Thread Ken Thomases
On Jul 24, 2014, at 8:37 AM, Cody Garvin wrote: > I use updateTrackingAreas to remove all the tracking areas, then adding new > ones (same rects as the drag points) with the options: > NSTrackingActiveInActiveApp | NSTrackingCursorUpdate | NSTrackingAssumeInside Why are you including NSTrackin

Re: NSCursor tracking areas

2014-07-24 Thread edward taffel
On Jul 24, 2014, at 10:30 AM, Cody Garvin wrote: > >> >> ah, well, i had a similar problem, but the opposite. have you tried doing >> the set in mouseEntered? >> > > I have not tried mouseEntered yet. If I go that route, should I dispose of > cursorUpdate? > > - Cody of course, you’ll ne

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
> > ah, well, i had a similar problem, but the opposite. have you tried doing the > set in mouseEntered? > I have not tried mouseEntered yet. If I go that route, should I dispose of cursorUpdate? - Cody ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: NSCursor tracking areas

2014-07-24 Thread edward taffel
On Jul 24, 2014, at 10:18 AM, Cody Garvin wrote: >> >> is it set (enter), reset (exit), or both that sometimes do not work as >> intended? >> > > Setting it, resetting seems to always work. ah, well, i had a similar problem, but the opposite. have you tried doing the set in mouseEntered?

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
> > is it set (enter), reset (exit), or both that sometimes do not work as > intended? > Setting it, resetting seems to always work. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: NSCursor tracking areas

2014-07-24 Thread edward taffel
On Jul 24, 2014, at 9:37 AM, Cody Garvin wrote: > Tried to send this yesterday with code, but I guess it was too big. > > This is on Xcode 6 Beta 4 / OS X 10.10. The app is built for 10.10, so > perhaps a bug. > > I’m getting some randomness with updating the cursor. Sometimes works as > int

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
Tried to send this yesterday with code, but I guess it was too big. This is on Xcode 6 Beta 4 / OS X 10.10. The app is built for 10.10, so perhaps a bug. I’m getting some randomness with updating the cursor. Sometimes works as intended, sometimes not. I have four hotspots on the corners of se