Sign in to follow this  

cocoa developer reference

This topic is 2485 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'm trying to build this opengl example from the book cocoa developer reference, and i get this:

NSOpenGLViews are not supported in windows with "One Shot" memory enabled.

i got the code from here:

http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470495898,descCd-DOWNLOAD.html

anyone know how to get this working?

Share this post


Link to post
Share on other sites
if you select the Window for the app under Interface Builder you will see down at the bottom of the Window Attributes a memory section. Most likely "One Shot" will be selected. Uncheck it and the error will go away.

I am guessing you are doing an OpenGl app. "One Shot" allows the OS to destroy the window when it is hidden if needed due to memory issues. When using an openGL app that can't happen because of the way openGl works.

theTroll

Share this post


Link to post
Share on other sites
[quote name='TheTroll' timestamp='1298469802' post='4777951']
if you select the Window for the app under Interface Builder you will see down at the bottom of the Window Attributes a memory section. Most likely "One Shot" will be selected. Uncheck it and the error will go away.

I am guessing you are doing an OpenGl app. "One Shot" allows the OS to destroy the window when it is hidden if needed due to memory issues. When using an openGL app that can't happen because of the way openGl works.

theTroll


[/quote]

how do you open interface builder? i tried double clicking both of the .xib files but nothing happened.

Share this post


Link to post
Share on other sites
Double clicking the xib file should open the file. Not sure why your's wouldn't. You should be able to open Interface Builder from the same folder that XCode is in.

Share this post


Link to post
Share on other sites

This topic is 2485 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