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: Thomas Reed <tareed at bitjuggler dot com>
Date: Tue, 31 Aug 2004 17:05:42 -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:

Suppose, to take your example, that the Timer's Action event needs to make some change to its container. Can it just do something like "container.SomeProperty = 1" (where container would be a keyword that returned the object Foo)? How could it know that its container would have such a property, without the cumbersome addition of "if container isa FooType then"?

The same way it does today for all classes. You are overlooking the scope of the event.

Yes, you're right, I was. That actually significantly undermines my whole argument. So, uhh, I guess... nevermind...

:-)

-Thomas

Personal web page: <http://homepage.mac.com/thomasareed/> My shareware: <http://www.bitjuggler.com/> Free REALbasic code: <http://www.bitjuggler.com/extra/>

There are 10 kinds of people in the world -- those who understand binary
numbers and those who don't.

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