• 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: The mouse is where?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The mouse is where?


  • Subject: Re: The mouse is where?
  • From: Jayson Adams <email@hidden>
  • Date: Fri, 25 Jan 2008 15:38:34 -0800


On Jan 25, 2008, at 2:51 PM, email@hidden wrote:

(C) How do I know where the mouse is, in the absence of (prior to receiving) a mouse-related event?

-- There is not, afaik, any Cocoa frameworks function or method that gets the mouse location other than from a NSEvent. (It may exist and I just haven't found it.)

NSWindow has

	- (NSPoint)mouseLocationOutsideOfEventStream

and NSEvent has

	+ (NSPoint)mouseLocation

Best,


__jayson

Circus Ponies NoteBook - Organization for a Creative Mind
www.circusponies.com



_______________________________________________

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: The mouse is where?
      • From: email@hidden
References: 
 >The mouse is where? (From: email@hidden)

  • Prev by Date: Re: NSScroller methods not being called
  • Next by Date: Re: Getting the content-type in a HTTP response
  • Previous by thread: The mouse is where?
  • Next by thread: Re: The mouse is where?
  • Index(es):
    • Date
    • Thread