Re: Message Forwarding for + Methods
Re: Message Forwarding for + Methods
- Subject: Re: Message Forwarding for + Methods
- From: Sherm Pendley <email@hidden>
- Date: Tue, 6 Sep 2005 00:39:23 -0400
On Sep 5, 2005, at 11:15 PM, Joe Lester wrote:
Any way to get message forwarding to work on class methods (+
methods)? I know they work for instance methods (- methods) using...
- (void)forwardInvocation:(NSInvocation *)anInvocation
But is there a way to forward messages sent to the class itself?
Thanks!
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.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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