I was using cocosbuilder version 2.1 but when I loaded the files in xcode, it gave me the error that reader: 5 and file : 3. So to fix this, I downloaded cocosbuilder version 3.0 alpha 5. But in this version of Cocosbuilder I cant see my files under the Project header on the left. I had created a ccb file also, which I am unable to open as I cant see it under project. Any help is appreciated.
I may not be able to upgrade to 10.8 just yet. I have a new machine coming tomorrow and will test it out on that and let you know. I’m also going to spend some time seeing if I can fix the bug. I’ll definitely keep you posted
OK, I found the problem. CocosBuilder alpha 5 is definitely not compatible with 10.7.x. It requires 10.8.x. CocosBuilderAppDelegate is using an API introduced in 10.8 to load NIB files. When run on a 10.7 os, the method never returns (since it doesn’t exit). The error is logged but the app doesn’t exit or anything. it just doesn’t load the preview pane. If you are willing to build from source, you use the following setupResourceManager function instead of the existing one. Basically this code does the same thing except uses the 10.7 API to load the NIB.
@The Devil
Thanks for helping!But,i’m a little confused,setupResourceManager function is the source code of the CocosBuilder APP ? or the source code of my own project? How to replace it? Can i rebuild the source code of CocosBuilder?
OK, I found the problem. CocosBuilder alpha 5 is definitely not compatible with 10.7.x. It requires 10.8.x. CocosBuilderAppDelegate is using an API introduced in 10.8 to load NIB files. When run on a 10.7 os, the method never returns (since it doesn’t exit). The error is logged but the app doesn’t exit or anything. it just doesn’t load the preview pane. If you are willing to build from source, you use the following setupResourceManager function instead of the existing one. Basically this code does the same thing except uses the 10.7 API to load the NIB.
>
>
Dave
You post has definitely saved me. Thanks a lot.
Don’t know why “NSNib* aNib” appears to be “NSNib aNib” in the post, maybe is some kind of auto format?