Using NSInvocation with a class method
Using NSInvocation with a class method
- Subject: Using NSInvocation with a class method
- From: "Brant Sears" <email@hidden>
- Date: Wed, 23 Nov 2005 11:26:34 -0500
- Thread-topic: Using NSInvocation with a class method
I would like to use an NSInvocation object to invoke a class method. In this case, it is the method + (void)setHiddenUntilMouseMoves:(BOOL)flag on the class NSCursor. The reason is that I would like to be able to invoke this from a timer.
I am trying the following:
NSMethodSignature * methodSig = [NSCursor instanceMethodSignatureForSelector:@selector(setHiddenUntilMouseMoves:)];
methodSig returns nil in this case. I am guessing that perhaps this method is not appropriate for a class method because of the word "instance" in the name. On the other hand, I do not see a call that looks more apporpriate for creating the NSMethodSignature necessary to create the NSInvocation object.
Can someone please explain how to go about creating an NSInvocation object for a class method?
Thanks.
Brant Sears
<<winmail.dat>>
_______________________________________________
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