| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Design Question |
| From: | Norman Palardy <npalardy@great-white-software.com> |
| Date: | Thu, 30 Oct 2008 09:33:05 -0600 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <3A251409-3EBD-497B-88AE-365FD9F90498@mac.com> |
| References: | <3A251409-3EBD-497B-88AE-365FD9F90498@mac.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On 30-Oct-08, at 8:53 AM, Sam Rowlands wrote: Is there a way to create a class.parent without having a property on the class?For instance say I have a class called Engine, then I have an array of Valve classes. The array is a property of Engine.Engine.Valves()However now I want the valve to communicate with the Engine, to notify the engine when it fails, do I create a property on the valve class called parent and set that to be my engine, or is there some fancy trick I can use to probe the valve and figure it out? sounds like a valve should have a way to notify anything that is monitoring it and an engine could notify things that are observing it as well check out the Observer pattern _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | BevelButton Enable Failure resolution, Tim Jones |
|---|---|
| Next by Date: | RE: Help please: Hardware Overview of a PC, Lennox Jacob |
| Previous by Thread: | Re: Design Question, Roger Clary |
| Next by Thread: | Re: Design Question, Sam Rowlands |
| Indexes: | [Date] [Thread] [Top] [All Lists] |