Newbie: Dependency notification questions?
David T. Lewis
lewis at mail.msen.com
Sun Feb 20 21:16:46 UTC 2005
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
|