Newbie: Dependency notification questions?

Joseph Jones darkdescendant at mac.com
Mon Feb 21 02:23:47 UTC 2005


Cool, thanx. Figured this had to have been taken care of by now. ;-)

joe

On Feb 20, 2005, at 1:16 PM, David T. Lewis wrote:

> On Sun, Feb 20, 2005 at 12:53:26PM -0800, Joseph Jones wrote:
>> In looking at the dependency notification service it seems rather
>> inefficient. Basically I sign up as a dependent and I receive every
>> notification even if I'm not interested in it. I was wondering if 
>> there
>> is a better way to receive filtered notifications so that I a) only
>> receive notifications for those events I want and b) get called back 
>> on
>> specific selectors for each notification to stop the imminent
>> caseing/switching in the single update:with: callback.
>>
>> I have an idea how better to do this but I want to make sure that I am
>> do not re-invent the wheel here.
>
> No need for that, it's already been reinvented. Take a look at the
> methods in the events-* category in Object (e.g. Object>>when:send:to).
>
> Dave
>
>




More information about the Squeak-dev mailing list