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

Re: is the mouse button pressed?


  • Subject: Re: is the mouse button pressed?
  • From: Chris Ridd <email@hidden>
  • Date: Wed, 29 May 2002 11:08:17 +0100

Ian <email@hidden> wrote:
> In the Mac OS(<10) toolbox we had a function, I think it was
> mousepressed() or mousedown() or buttondown() or something which simply
> told us whether or not at that instant the mouse button was down. I could
> really use something like that now, but can't find a cocoa equivalent. I
> don't want to overide mouseDown or poll [NSApp currentEvent] or anything
> like that, I just want to know that at the instant I call
> NSImaginaryMethodThatReturnsYesOrNoAccordingToAnyMouseButtonBeingDownOrNo
> t will let me know what I want to know :)
>
> Have I missed this somewhere? Many thanks to anyone that can tell me yes
> or no if this functionality already exists.

NSEvent has a class method to return the current mouse location
(+mouseLocation) but not the current button states AFAICS.

So this isn't what you are looking for (sorry) but it might inspire a poke
around the NSEvent documentation/header file to see if there's anything in
there relating to buttons.

Cheers,

Chris
_______________________________________________
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.

References: 
 >is the mouse button pressed? (From: Ian <email@hidden>)

  • Prev by Date: max size of [NSString stringWithContentsOfFile:] ?
  • Next by Date: Re: [newbie] Reading a CSV file
  • Previous by thread: is the mouse button pressed?
  • Next by thread: Re: is the mouse button pressed?
  • Index(es):
    • Date
    • Thread