Re: "current" selector as string
Re: "current" selector as string
- Subject: Re: "current" selector as string
- From: "Thomas Deniau" <email@hidden>
- Date: Thu, 24 Jul 2003 16:08:16 -0400
>
But now I want to find out the name of the method the error occured in
>
by using its SEL. So what I'd need is some kind of function to find out
>
the current SEL....
current SEL : _cmd
so as string : NSStringFromSelector(_cmd);
i.e. for example NSLog(@"The error occured in -[%@
%@]",NSStringFromClass(isa),NSStringFromSelector(_cmd));
Hmm... Does anyone know how to know if it's + or - automatically ?
_______________________________________________
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.