Re: Forwarding messages from an application delegate
Re: Forwarding messages from an application delegate
- Subject: Re: Forwarding messages from an application delegate
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 02 May 2008 11:04:39 -0400
- Thread-topic: Forwarding messages from an application delegate
on 2008-05-02 10:44 AM, Graham Cox at email@hidden wrote:
> You also need to override -respondsToSelector: and return a logical OR
> of your delegate plus the old delegate's response, something like:
I use this techhnique in my PreFab Event Taps Testbench utility.
I call this the "delegate server" design pattern. In a general sense, it
allows you to control programmatically whether a class "implements" a
delegate method. For example, you could have a preference setting in an
application that turns the delegate methods on or off, or switches between
different sets of delegate methods. The uses for this are probably few, but
it served me perfectly for a test utility that is designed to see how a
variety of applications handle certain system-level facilities with a
variety of delegate method and callback method implementations.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden