| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Window.Left and WIndow.Top incorrect |
| From: | Terry Ford <tmford@shaw.ca> |
| Date: | Wed, 29 Jul 2009 12:18:25 -0700 |
| 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: | <B902623E-524A-49BA-B34E-94CF2A52FD38@great-white-software.com> |
| References: | <048D0EFB-D608-4802-99E5-46187B30F447@stretchedout.com> <3A1798A9-5105-450C-A220-10F5D8E82C52@xochi.com> <CF7C7E87-5990-4C26-B5E9-4BD6DAC61D8A@stretchedout.com> <28648C61-3E4B-41F7-91E2-A99B55D4E697@xochi.com> <B902623E-524A-49BA-B34E-94CF2A52FD38@great-white-software.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On Jul 29, 2009, at 11:42 AM, Norman Palardy wrote: In an instance placed on a windows self refers to the window and me refers to the instance on the windowIn the code in a subclass, me and self refer to the instance (they are synonyms) Sometimes it is also helpful if one considers who owns the code or control. That way, self always refers to the owner. If the code is in an instance, the window owns it. If the code is in a subclass, then the class owns it. If the code in a window control needs a method or property in the subclass, it must refer to 'me.' to call that code. Outside references must also refer to the window's control directly as it inherited the method or property from its super. This all depends on the scope that the method or property has as well. It can be confusing until one truly understands how it all works. Terry _______________________________________________ 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: | Linux socket speeds?, Todd Fantz |
|---|---|
| Next by Date: | Re: Window from hell, Paul Rodman |
| Previous by Thread: | Re: Window.Left and WIndow.Top incorrect, Norman Palardy |
| Next by Thread: | Re: Window.Left and WIndow.Top incorrect, Norman Palardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |