Fwd: instanceMethodSignatureForSelector always nil
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.