realbasic-nug
[Top] [All Lists]

Re: Replacing Me (was Re: Events vs. Methods)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Replacing Me (was Re: Events vs. Methods)
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Tue, 31 Aug 2004 15:44:21 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20040830115204 dot C0643416CC3 at lists dot realsoftware dot com> <B72F25A2-FA88-11D8-B2DE-000A27B1C8AE at elfdata dot com> <9533F3C8-FA95-11D8-8447-0003931D7A4A at ljug dot com> <3307398A-FA97-11D8-8005-000A95DB6C90 at fireyesoftware dot com> <68095260-FA9E-11D8-8447-0003931D7A4A at ljug dot com> <C3F9C1A6-FAA0-11D8-B299-000A95A9544A at shaw dot ca> <3E5D895B-FABB-11D8-826C-003065F2C108 at shaw dot ca> <8B95CFA8-FAEB-11D8-B299-000A95A9544A at shaw dot ca> <p06002005bd598ce1cb53 at [130 dot 116 dot 148 dot 114]> <5DE6A484-FB45-11D8-B23F-000A95880024 at bitjuggler dot com> <96DB6366-FB5B-11D8-8447-0003931D7A4A at ljug dot com> <p06002003bd5a3f6de7fd at [203 dot 34 dot 30 dot 70]> <BE92DE2C-FB63-11D8-8447-0003931D7A4A at ljug dot com> <51F6F210-FB74-11D8-B23F-000A95880024 at bitjuggler dot com> <B0945907-FB79-11D8-8447-0003931D7A4A at ljug dot com>

On Aug 31, 2004, at 2:15 PM, Brady Duga wrote:
[snick]

Now take the case of a Foo object:

You want to add a Timer to a class, 'Foo', so the object can do something periodically. You grab a Timer, drop it on the class, select it (UI undetermined) and set it's properties. You toggle open 'Children' in the class editor and see a Timer1. You toggle that open and see an 'Action' event. Click it, and add type:

self.DoSomething
if Done then
        me.mode = 0
end if

There is no language addition, though there would need to be extensive UI changes. It just makes events consistent across classes. I suppose we would have to wait until RS rewrote the IDE. If only they would do it with Rb itself, these additions would be even easier.

I think that you'd want a UI similar to the one that exists already. You drop, say, a Timer on the code editor of a Widget. It then appears as part of a new subheading, "Objects". Expand that, you see Timer1; expand that, and you see the Action event handler in all of its splendor.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>