Search code examples
nsstringcmdspecifier

What is the correct string specifier for _cmd?


I use %s for _cmd, the latest XCode will generate an error "Format specifies type char * but the argument has type SEL". Checked documentation and couldn't find a clue. Anyone know the correct string specifier to use?


Solution

  • I've never done Apple programming in my life, so bear with me, but a little Googling revealed easily that: