realbasic-nug
[Top] [All Lists]

Re: FR: Weak Delegates (was Re: Some questions about delegates)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: FR: Weak Delegates (was Re: Some questions about delegates)
From: Charles Yeomans <charles at declareSub dot com>
Date: Fri, 30 Nov 2007 20:38:03 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BAY107-DAV4A856F93620F2D65BA3C693710 at phx dot gbl> <8162A20A-AA06-46C4-8293-78D1BE7AE094 at chaoticbox dot com> <653CDEAD-238A-41A5-B733-0F7D18A3742C at mac dot com>
On Nov 30, 2007, at 6:06 PM, Guyren Howe wrote:

> On Nov 30, 2007, at 4:40 PM, Frank Condello wrote:
>
>> It's important to note that the delegate stores a strong ref to the
>> instance behind your back, which can wreak havoc if you rely on
>> things automatically cleaning up after themselves. In general I'd
>> think delegates that held weak refs and fired exceptions when
>> "Invoked" on a Nil object would be more useful, but I'm sure RS had
>> their reasons for the current implementation.
>
> Requested:
>
> <http://www.realsoftware.com/feedback/viewreport.php? 
> reportid=oqccypjd>
>

I note, though, that delegates can be stored in WeakRef objects.  So  
I'm not sure that such a feature request is crucial.

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