cocos2d-x+cocosbuilder 学习笔记 (三)

cocosbuilder3在 os x 10.8以下版本下会出现左侧project为空的情况,解决办法如下 下载CocosBuilder源码,用Xcode打开,找到CocosBuilderAppDelegate.m


- (void) setupResourceManager函数里面的

[[NSBundle mainBundle] loadNibNamed:@"ResourceManagerPreviewView" owner:previewViewOwner topLevelObjects:&topLevelObjs];


换成

NSNib *aNib = [[NSNib alloc] initWithNibNamed:@"ResourceManagerPreviewView" bundle:[NSBundle mainBundle]];

    if (![aNib instantiateNibWithOwner:previewViewOwner topLevelObjects:&topLevelObjs]) {

        NSLog(@"Warning! Could not load ResourceManagerPreviewView nib file.\n");

        return;

    }

    [aNib release];

    [topLevelObjs makeObjectsPerformSelector:@selector(release)];

编译运行即可

你可能感兴趣的:(cocos2d-x+cocosbuilder 学习笔记 (三))