realbasic-nug
[Top] [All Lists]

Re: Circular reference powers used for good?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Circular reference powers used for good?
From: James Sentman <james at sentman dot com>
Date: Mon, 31 Dec 2007 17:37:26 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <1F31400A-2192-40FA-B482-EAAD05F0C530 at oxalyn dot com> <D38D342E-2E3A-4923-91B8-5B3596AC3F24 at mac dot com>
On Dec 31, 2007, at 5:03 PM, Guyren Howe wrote:

>> Can I set up the timer with a property "myself as Timer" to make sure
>> it doesn't go out of scope? Then, in the Timer's Action event, I can
>> set the myself property to nil and it should just evaporate after the
>> event ends (because no other object will hold a reference to it).
>>
>> Does anybody see any problem with this approach? Incidentally, I'm
>> considering the circular reference setup to avoid a potential stack
>> overflow. :)
>


I take back what I said about it being fishy ;) I also agree with  
those that said it would work. I would think it would be easy to test  
to be sure.


Thanks,
  James


James Sentman                       http://sentman.com          
http://MacHomeAutomation.com



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