开发者

Xcode screensaver with openGL

I am currently simply trying to build a simple screen saver in xcode 3.2 on osx 10.6.3 using a开发者_JS百科n openGL view as described in this article: http://cocoadevcentral.com/articles/000089.php anyways even if I use the exact same code from the example all I see when testing the screen saver is a black screen. I looked in OSX Console if it tells me anything useful. the only thing I get is something like this:

[0x0-0x1e01e].com.apple.systempreferences[629] System Preferences(629,0x7fff71071be0) malloc: reference count underflow for 0x20057be80, break on auto_refcount_underflow_error to debug. System Preferences[629] invalid context

I have no idea what is wrong, so I would be glad if someone could tell me how to use openGL together with the screensaver template in xCode 3.2. Also, is there a way to make another target so I can preview the screensaver from within xCode?

Thanks!


The example on Cocoa Dev Central works just fine. The same error comes up for me, but as far as I can tell, that is not the reason why you're getting a black screen.

I had a similar problem because I wasn't correctly reinstalling the screen saver.

Make sure you quit System Preferences before reinstalling the screen saver. If you don't, the old screen saver will still be used, even when it asks you about overwriting it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜