• Advertisement
Sign in to follow this  

cocoa developer reference

This topic is 2554 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
Advertisement
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

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




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
Sign in to follow this  

  • Advertisement