0
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
NSArray* windowList = [[NSArray alloc] init];
windowList = [NSWindow windowNumbersWithOptions:0];
NSLog(@"%lu", [windowList count]);
}
return 0;
}
段錯誤段錯誤時NSWindow windowNumbersWithOptions簡單的Objective-C代碼與NSWindow windowNumbersWithOptions
顯示段錯誤的回溯。 – kperryua
https://gist.github.com/2968987 –
在AppKit調用的CG代碼中崩潰幾乎肯定是一個錯誤。您應該向Apple提交報告。 – kperryua