• 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
Fwd: instanceMethodSignatureForSelector always nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: instanceMethodSignatureForSelector always nil


  • Subject: Fwd: instanceMethodSignatureForSelector always nil
  • From: "Henry F. Bridge" <email@hidden>
  • Date: Tue, 6 Apr 2004 02:21:51 -0700

Hi all,

I'm trying to create an NSInvocation method, but can't seem to get an NSMethodSignature with either the [class instanceMethodSignatureForSelector:SEL] or [self methodSignatureForSelector] methods.

Here's my code:

SEL fooSel = @selector(foo:);
NSMethodSignature *signature = [self
methodSignatureForSelector:fooSel];
NSInvocation *fooInvocation = [NSInvocation invocationWithMethodSignature:signature];

when I break on the first line and step, fooSel gets assigned a value. But when I step through the next step, signature gets assigned nil. This must be something elementary, but I can't figure out what's going on. I've doublechecked the foo: selector (and the colon) a dozen times. Foo is declared as an instance method in the class.h file, and -- to make sure -- appears in the class.m file above the attempt to get an NSMethodSignature.

Any ideas?

Thanks in advance.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: instanceMethodSignatureForSelector always nil
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Scrolling Back Terminal Window
  • Next by Date: What is the role of the CF- objects?
  • Previous by thread: Re: Scrolling Back Terminal Window
  • Next by thread: Re: instanceMethodSignatureForSelector always nil
  • Index(es):
    • Date
    • Thread