• 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: How to get mouse moved events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get mouse moved events?


  • Subject: Re: How to get mouse moved events?
  • From: Public Look <email@hidden>
  • Date: Sun, 25 Jan 2004 02:36:24 -0500

Thanks for the feedback. I remember a "rulers" application from way back in NeXTstep. I think it was probably tied into the Window Server directly back then. The Window Server was partly/mostly a Postscript application and much of its source was available...

OK. I am not a graphic designer, but my interest is piqued. How does a graphic designer use rulers, etc. Does it matter if the document being edited is scaled/zoomed, translated, or rotated ? Don't most graphic design related applications have built in rulers ? I suppose being able to position translucent rulers anywhere on screen could be handy, but what do designers use for reference points to position rulers? What happens when the window of the document being edited is moved relative to the rulers or the document is scrolled ?

Don't take up list bandwidth if this is too off topic. This thread started as a technical question, and now I am twisting it into more of a why then a how question...

So, regarding the technical question: Is the answer to use CGRemoteOperation.h ? http://developer.apple.com/documentation/GraphicsImaging/Reference/ Quartz_Services_Ref/index.html

void CGGetLastMouseDelta (CGMouseDelta * deltaX, CGMouseDelta * deltaY);

CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point);

Presumably by moving the cursor to a known location and then tracking the deltas, an application always knows where the cursor is. Moving the cursor initially can be avoided by finding the initial mouse position some other way like through normal Cocoa event handling for the front most application.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • (Slightly Off Track) Re: How to get mouse moved events?
      • From: Henry McGilton <email@hidden>
References: 
 >Re: How to get mouse moved events? (From: Henry McGilton <email@hidden>)
 >Re: How to get mouse moved events? (From: Public Look <email@hidden>)
 >Re: How to get mouse moved events? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Cocoa from the command line?
  • Next by Date: Re: programmatically instantiating and displaying NSWindow
  • Previous by thread: Re: How to get mouse moved events?
  • Next by thread: (Slightly Off Track) Re: How to get mouse moved events?
  • Index(es):
    • Date
    • Thread