Re: Message Forwarding for + Methods
Re: Message Forwarding for + Methods
- Subject: Re: Message Forwarding for + Methods
- From: Joe Lester <email@hidden>
- Date: Tue, 6 Sep 2005 09:51:46 -0500
On Sep 5, 2005, at 11:39 PM, Sherm Pendley wrote:
On Sep 5, 2005, at 11:15 PM, Joe Lester wrote:
Any way to get message forwarding to work on class methods (+
methods)?
Have you tried simply overriding the instance method
-forwardInvocation:? Instance messages that are defined in a root
class (such as NSObject) can also be sent to Class objects, precisely
to avoid the need for duplicate class and instance versions of methods
such as this one.
Thanks for responding. Overriding the instance method
-forwardInvocation:? Yes, I tried that but it was not being messaged
when I targeted the class. However overriding +forwardInvocation: does
seem to work...
+ (void)methodSignatureForSelector:(SEL)aSelector
+ (void)forwardInvocation:(NSInvocation *)anInvocation
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden