realbasic-betas.mbox
[Top] [All Lists]

Re: OT: Global Methods

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: OT: Global Methods
From: Terry Ford <tmford at shaw dot ca>
Date: Fri, 25 Oct 2002 15:15:03 -0700
On Friday, October 25, 2002, at 04:12 PM, Chris Little wrote:

on 10/25/02 4:45 PM, john roberts at jarobe01 at athena dot louisville dot edu 
wrote:

on 10/25/02 4:10 PM, Chris Willis at rb-dr at macest dot com wrote:

Where is the best place to store global methods - a module or the
application class? Is one more suitable than the other? The only difference
I currently see is when a method is in the application class, it needs
"appclassname." appended to the start of the line. I'm sure there's
differences deep down in the runtime code...would someone like to enlighten
me?

Storing them in one or more modules make them easier to incorporate into
other projects.


They should be slightly faster to call as well since RB doesn't have to get
the application object first.

Chris

This seems to be going one way. Is there any reason not to put something in a module?

The only methods and properties I put in my application class are those relating to Global Menu items and the opening and closing of the program. Everything else goes into the individual windows or modules that will be accessed by more than one window. This helps keep most things object oriented which modules are not.

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>


--

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.


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