• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maintaining NSCursor outside of app window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Maintaining NSCursor outside of app window
      • From: Quincey Morris <email@hidden>
References: 
 >Maintaining NSCursor outside of app window (From: Markus Spoettl <email@hidden>)
 >Re: Maintaining NSCursor outside of app window (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Maintaining NSCursor outside of app window
  • Next by Date: Re: Maintaining NSCursor outside of app window
  • Previous by thread: Re: Maintaining NSCursor outside of app window
  • Next by thread: Re: Maintaining NSCursor outside of app window
  • Index(es):
    • Date
    • Thread