realbasic-nug
[Top] [All Lists]

Re: (one last try) (was Re: Events vs. Methods) (Brady Duga)

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: (one last try) (was Re: Events vs. Methods) (Brady Duga)
From: "Theodore H.Smith" <delete at elfdata dot com>
Date: Tue, 31 Aug 2004 15:37:33 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20040831132124 dot 6ECB741CD9B at lists dot realsoftware dot com>
I would have to subclass the
Timer class, store a reference to the socket, store a reference to the
Timer in the socket (oops, circular reference), and put code into the
action event of the subclass that calls the socket telling it to send
the data.

No. You could hypothetically put it into the window code also. Events can work via classes and window code, so why not event-like methods also? No reason why not.

--
    Theodore H. Smith - Software Developer.
    http://www.elfdata.com

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