• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using NSInvocation with a class method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using NSInvocation with a class method
      • From: Christian Brunschen <email@hidden>
  • Prev by Date: Basic runtime function usage - objc_getClass
  • Next by Date: NSApp sendAction
  • Previous by thread: Re: Basic runtime function usage - objc_getClass
  • Next by thread: Re: Using NSInvocation with a class method
  • Index(es):
    • Date
    • Thread