[racket] Bug all/13780 ... can someone confirm this?

From: Erich Rast (erich at snafu.de)
Date: Mon Jul 15 04:58:09 EDT 2013

Thank you very much for this fast response! Incidentally, I only need
modifier key information anyway.


Best,

Erich

On Sun, 14 Jul 2013 17:04:02 -0600
Matthew Flatt <mflatt at cs.utah.edu> wrote:

> I see that the `pressedMouseButtons' method of `NSEvent' was not
> available until OS X 10.6, so the implementation of
> `get-current-mouse-state' needs to avoid it in 10.5 and earlier.
> 
> At Sun, 14 Jul 2013 18:29:27 +0100, Erich Rast wrote:
> > This bug is a minor show-stopper in my project ("minor" because I
> > could simply remove the functionality that makes use of the
> > function). The bug was filed on May 26 and nobody is assigned to it
> > yet, so I wonder: Is it repeatable? Could someone else confirm it?
> > Does it only occur in my particular VM configuration?
> > 
> > The following program crashes on OS X 10.5.5:
> > 
> > #lang racket/gui
> > 
> > (define-values (p modifiers) (get-current-mouse-state))
> > 
> > ; this program crashes DrRacket 
> > 
> > because get-current-mouse-state seems to call an unsupported API
> > function. It works fine on Linux 64 bit. Haven't tested it on
> > Windows.
> > 
> > Best,
> > 
> > Erich
> > 
> > ____________________
> >   Racket Users list:
> >   http://lists.racket-lang.org/users
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users


Posted on the users mailing list.