Sign in to follow this  

XCode Info.plist missing NSPrincipalClass

This topic is 1631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'd post this on the Apple forums but they're down right now.

 

I'm following NeHe's OpenGL tutorials code for XCode/Cocoa and I made a Command-Line project and am using the source provided.

But it said Info.plist was missing or NSPrincipalClass wasn't specified. I tried using an Info.plist from one of my iphone projects. 

I tried renaming it to battlecompworlded-Info.plist (my project name) with NSPrincipalClass set to NSApplication. But still the same error.

What do I do?

Share this post


Link to post
Share on other sites

Maybe the source is expecting a bundle to be present for locating some resources? Did you try creating a "Cocoa Application" project instead? Because a Command-Line project doesn't have a bundle.

Share this post


Link to post
Share on other sites

Okay, Cocoa it is then. But how do you change the window title in the GUI editor? [edit] I see now.

Edited by polyfrag

Share this post


Link to post
Share on other sites

How do I change the class of the NSOpenGLView to my OpenGL view class?

 

[edit] Had to use "custom view" widget instead of what it said in Apple dev tutorial.

Edited by polyfrag

Share this post


Link to post
Share on other sites

This topic is 1631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this