Re: Current Selector
Re: Current Selector
- Subject: Re: Current Selector
- From: Jeff Disher <email@hidden>
- Date: Mon, 6 Jan 2003 17:55:46 -0500
As I recall, you can do the following:
NSLog(NSStringFromSelector(_cmd));
To output the name of the current method.
Hope that helps,
Jeff.
On Monday, January 6, 2003, at 05:35 PM, Ted Lowery wrote:
Is there a way, programmatically, to get the name of the current
selector (method) that is executing? I'm trying to log some debugging
info, and I'd like to be able to indicate the selector without having
to write a custom like of code for each method.
Cheers, Ted
_______________________________________________
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.
Jeff Disher
President and Lead Developer of Spectral Class
Spectral Class: Shedding Light on Innovation
http://www.spectralclass.com/
_______________________________________________
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.