On 2012-09-24 22:00:29 -0700, Gregory Woodhouse wrote:
>In writing contracts for classes I always use the ->m constructor for
>methods, so this example of section 5.1 of the Reference surprises me
>
>(define file-interface<%>
> (interface () open close read-byte write-byte))
>(
I used 'enter to make the problem easy to demonstrate, but what I'm really
interested in is button up/down events and they get duplicated also.
Unfortunately there's no guarantee that a window will ever get a matched pair
of up/down events (due to pop-ups etc.) so I really can't rely on that.
In writing contracts for classes I always use the ->m constructor for methods,
so this example of section 5.1 of the Reference surprises me
(define file-interface<%>
(interface () open close read-byte write-byte))
(define directory-interface<%>
(interface (file-interface<%>)
[file-list (
Oh. Well, either this is going to be a bug, or it is going to fall
under "you sometimes get strange events, thanks to details of how the
platform interacts with its apps". I'm not sure which in this case,
but can you tell that you've gotten two enters without getting a leave
inbetween?
Robby
On M
On Sep 24, 2012, at 17:57, Robby Findler wrote:
> When I run this on the mac, I don't see any enter events, which seems
> strange.
Strange - I am on Windows but thought the code would work on all platforms.
> But my initial reaction to your question was that you need to
> use the 'r' argument.
When I run this on the mac, I don't see any enter events, which seems
strange. But my initial reaction to your question was that you need to
use the 'r' argument.
Robby
On Mon, Sep 24, 2012 at 5:00 PM, Kieron Hardy wrote:
> Hi all,
>
> Considering the program below, does anyone know:
>
> - Why d
Hi all,
Considering the program below, does anyone know:
- Why do I get 3 enter messages when moving the mouse cursor into the
frame, and 2 enter messages when moving the mouse cursor into the list-box%?
- If (as I suspect) there is a call to on-subwindow-event for every
sub-component of a widge
I think I am seeing a similar error message, with a mobile Web app being
viewed in Firefox. Based on the timing, looks like the client is doing
keepalive (or similar), and eventually timing out the connection. If
so, I think that would be normal Web browser behavior, not something
that I'd ex
With "web-server", does anyone have a preferred way of making
"dispatch-rules" handle slashes at the ends of URLs?
For example, if I have a URL "/foo", I'd like to also accept "/foo/" for
the same behavior.
So, I could do something like this:
(define-values (app-dispatch app-url)
(dispatch
Hi all,
What do I need to do in order to start a Racket script on Windows (Win 7 is
specifically what I have here) by dragging a file onto its icon? Is the
cmdline library what handles such calls?
Actually, now that I'm trying to do the dragging, I see Windows doesn't want to
treat the script
You were right about not needing macros in that example Danny.
A simple apply was all that I needed. I forgot that the struct constructor
is a simple function, and I was trying to splice things needlessly.
Thanks again.
On Thu, Sep 20, 2012 at 4:14 PM, Danny Yoo wrote:
>
>> Thanks for the help. T
Thanks Greg, i try it yesterday on Windows and couln't
make it work.
*And really really thanks Neil* for all the work you have been releasing to
the public.
(specially around SICP stuff )
J.A. Garcia
On Mon, Sep 24, 2012 at 8:44 AM, Greg Hendershott wrote:
> > (I'm also working on a home thea
> (I'm also working on a home theatre thing, in which a Racket "web-server"
> servlet is using this library, and providing a UI through Web browsers of
> handheld devices on the home LAN.)
Cool idea.
> If anyone wants to try out this Racket front-end to the VLC media player at
> this point, I'd a
Your understanding seems correct to me. You had a syntax error.
#lang racket
(define a%
(class object%
(super-new)
(define/pubment (hello)
(printf "Hello~n")
(inner 0 hello
(define b%
(class a%
(super-new)
(define/augment (hello)
;Call super here?
wow - i got that wrong.
check this example from the reference
http://docs.racket-lang.org/reference/createclass.html#(form._((lib._racket/private/class-internal..rkt)._augment))
#lang racket
(define buzzer%
(class object%
(super-new)
(define/pubment (buzz)
(displayln "bzzzt")
The way I read it was the new function gets called instead of inner;
#lang racket
(define a%
(class object%
(super-new)
(define/pubment (hello)
(printf "Hello ")
(inner 0)
(printf "!~n "
(define b%
(class a%
(super-new)
(define/augment (hello greg)
16 matches
Mail list logo