下面显示的代码给出了一个exeption
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
@interface Main : NSObject { }
@end
@implementation Main
+(void)main
{
NSLog(@"Hello world!");
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSApplication *anApplication = nil;
NSArray *screenArray = nil;
NSEnumerator *screenEnumerator = nil;
NSScreen *aScreen = nil;
NSWindowDepth *depths = null;//remove const
BOOL exactMatch = NO;
anApplication = [NSApplication sharedApplication];
screenArray = [NSScreen screens];
screenEnumerator = [screenArray objectEnumerator];
}
@end我正在使用windows,请访问下面的链接qckapp.com/index.html?p=ObjC
发布于 2011-06-30 18:30:41
您不能使用http://qckapp.com/index.html?p=ObjC完成此操作
只需通过编译器http://www.gnustep.org
发布于 2011-07-30 20:07:30
您的编译器没有ui功能,您只需使用http://qckapp.com/index.html?p=ObjC作为基本功能
祝好运。
https://stackoverflow.com/questions/6532517
复制相似问题