On Wed, Jul 7, 2010 at 12:07 AM, vincent habchi <vi...@macports.org> wrote:
> Hi there,
> this is a very simple question, but I don't seem to find the answer anywhere.
>
> What is the proper format to use in NSLog to print out a SEL type variable? 
> E.g.
>
> SEL aSelector = @selector (foo);
> NSLog ("%<What shall I put here?>", foo);
>
> If I use %s, it works, but I get a warning because the variable is not of the 
> char* type.

Also, I forgot about sel_getName() in <objc/runtime.h>. That returns a
const char *.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to