Я не могу понять, почему я получаюWeird ошибка NSAssert
use of undeclared identifier _cmd did you mean rcmd
на линии, где NSAssert есть.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int x = 10;
NSAssert(x > 11, @"x should be greater than %d", x);
[pool drain];
return 0;
}
Действительно хорошее объяснение ... и я кое-что узнал об объективе-C! – Robert
+1 для NSCAssert – onmyway133