• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Current Selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Current Selector (From: Ted Lowery <email@hidden>)

  • Prev by Date: Re: Current Selector
  • Next by Date: Re: Current Selector
  • Previous by thread: Re: Current Selector
  • Next by thread: Re: Current Selector
  • Index(es):
    • Date
    • Thread