Am working on some code that needs to basically do this:
NSLog(@"%@", NSStringFromSelector(_cmd))
but it seems that no matter what I do, Xcode wants to replace "_cmd" with "rcmd" because it does not recognize "_cmd".
Unless the structure of ObjC has dramatically changed, "self" and "_cmd" are invisible paramters to every method which is really nothing more than a C call at it's fundamental structure. In otherwords, "_cmd" is like the "air" that Objective C breaths... gotta be there... How can this not work?
So what am I doing wrong? If I take this out and put in @"Foo Foo Kitty" everyting compiles and runs.
Since the image posting here does not seem to work in the latest Safari, here is the error:
(use of undeclared identifier "_cmd"; did you mean "rcmd"?)
https://www.evernote.com/l/ACBl0fglWetDzogNMr29p1QE1ivEEZSj4u8B/image.png
Ref:
Objective C Messaging - how it works
Mar 2015 Apple Sample Code with _cmd