Re: instanceMethodSignatureForSelector always nil
Re: instanceMethodSignatureForSelector always nil
- Subject: Re: instanceMethodSignatureForSelector always nil
- From: Ondra Cada <email@hidden>
- Date: Tue, 6 Apr 2004 20:19:55 +0200
Henry,
On Tuesday, Apr 6, 2004, at 20:05 Europe/Prague, Henry F. Bridge wrote:
No, it does! That's why I'm so confused...
strange indeed--normally, these things tend to work all right:
15 /tmp> <q.m
#import <Foundation/Foundation.h>
@interface Foo:NSObject
-(void)foo:o;
-(void)testIt;
@end
int main() {
[NSAutoreleasePool new];
[[Foo new] testIt];
return 0;
}
@implementation Foo
-(void)foo:o {}
-(void)testIt {
SEL sel=@selector(foo:);
NSLog(@"SEL %x, sig %x",sel,[self
methodSignatureForSelector:sel]);
}
@end
16 /tmp> cc -Wall -framework Foundation q.m && ./a.out
2004-04-06 20:18:46.237 a.out[23025] SEL 2fc4, sig 92af0
17 /tmp>
Perhaps some typo or so in your code?
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.