Re: How to get a Category method?
Re: How to get a Category method?
- Subject: Re: How to get a Category method?
- From: Ondra Cada <email@hidden>
- Date: Mon, 15 Mar 2004 01:23:10 +0100
Rosyna,
On Monday, Mar 15, 2004, at 01:17 Europe/Prague, Rosyna wrote:
Try the same thing with an instance method, not a class method.
No problem. Did you?
24 /tmp> <q.m
#import <Foundation/Foundation.h>
int main() {
[NSAutoreleasePool new];
NSLog(@"responds: %d",[@""
respondsToSelector:NSSelectorFromString(@"justATest")]);
return 0;
}
@implementation NSString (JustATest)
-(void)justATest {}
@end
25 /tmp> cc -Wall -framework Foundation q.m && ./a.out
2004-03-15 01:22:36.508 a.out[23785] responds: 1
26 /tmp>
---
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.