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?
Asked
Active
Viewed 906 times
1 Answers
7
I've never done Apple programming in my life, so bear with me, but a little Googling revealed easily that:
- to convert
SEL
toNSString
useNSStringFromSelector
- Then use the
%@
format specifier on that.

Christian.K
- 47,778
- 10
- 99
- 143
-
Thanks Christian, that's it. I didn't try to think converting it to string then use existing specifier. – lichen19853 Jul 04 '12 at 19:09