Inside every Objective-c method there are two hidden variables so
is really
and when you call
it is actually
If you cmd-click on NSAssert to jump to it's definition you will see that it is a macro that uses the hidden _cmd variable of the method you are calling it from. This means that if you are not inside an Objective-c method (perhaps you are in 'main'), therefore you don't have a _cmd argument, you cannot use NSAssert. Instead you can use the alternative NSCAssert. |
|