Re: Custom-view cursor changing
Re: Custom-view cursor changing
- Subject: Re: Custom-view cursor changing
- From: John Stiles <email@hidden>
- Date: Wed, 28 Nov 2007 09:16:03 -0800
Uli Kusterer wrote:
Am 27.11.2007 um 22:46 schrieb John Stiles:
This appears to be happening because some view I'm using is posting a
notification saying that it needs to reset its cursor rects. When I
set a breakpoint on -[NSCursor set], I get this:
I think it'd be best if you just made your view change its cursor
rects while it is tracking. I'd expect your view to be called to reset
its cursor rects, too. Can't you just set a flag there and update your
own cursor rects as needed?
It's not my view that is the problem—my view is a simple subclass of
NSView that only overrides drawRect:, mouseDown:, mouseUp: and
mouseDragged:. In other words, no cursor rects at all.
It's some other standard OS view that is causing the trouble. I'm not
even sure which one because it's not really evident from the stack crawl.
To be clear, I've tried changing my code so that in mouseDragged:, I
only set my own view's frame and not any other view's frames. In this
case everything works fine. It's only when I start calling setFrame: on
other views that there is a problem.
_______________________________________________
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