Re: "current" selector as string
Re: "current" selector as string
- Subject: Re: "current" selector as string
- From: Sailor Quasar <email@hidden>
- Date: Thu, 24 Jul 2003 07:09:59 -0400
On Thursday, July 24, 2003, at 04:08 PM, Thomas Deniau wrote:
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 ?
[self isKindOfClass:[Class class]] would answer that, I would think
-- Sailor Quasar, just another player in The World
"Come with me in the twilight of the summer night for awhile"
Email: email@hidden
_______________________________________________
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.