Re: Maintaining NSCursor outside of app window
Re: Maintaining NSCursor outside of app window
- Subject: Re: Maintaining NSCursor outside of app window
- From: Markus Spoettl <email@hidden>
- Date: Thu, 13 Jan 2011 19:48:10 -0500
On Jan 13, 2011, at 7:37 PM, Corbin Dunn wrote:
> - (void)draggedImage:(NSImage *)draggedImage movedTo:(NSPoint)screenPoint
>
> Then do something like this (after converting the screen point to window coords):
>
> NSPoint windowPoint = [[view window] mouseLocationOutsideOfEventStream];
> NSPoint localPoint = [view convertPoint:windowPoint fromView:nil];
> if (![view mouse:localPoint inRect:[view visibleRect]]) {
> [[NSCursor disappearingItemCursor] set];
> }
Fantastic, thanks so much Corbin!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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