openGLVIEw和SplitVIEw异步调整大小.我在苹果邮件列表线程 http://developer.apple.com/mac/library/samplecode/GLChildWindowDemo/Introduction/Intro.html中找到了一个解决方案
我找到了一些带碳调用的解决方案.但现在我得到链接错误(仅在发布模式下).
所以我有两个问题 – 是否有任何可可方法来解决分裂器 – gl问题?
如果不是 – 如何在发布模式下修复碳链接器错误?
正确的方法是在MYWindow中实施thees方法:NSWindow
BOol needsEnableupdate;-(voID)disableupdatesUntilFlush{ if(!needsEnableupdate) NSdisableScreenUpdates(); needsEnableupdate = YES;}-(voID)flushWindow{ [super flushWindow]; if(needsEnableupdate) { needsEnableupdate = NO; NSEnableScreenUpdates(); }}
并在NssplitterVIEw委托实现
#pragma mark NssplitVIEw Delegate-(voID)splitVIEwWillResizeSubvIEws:(NSNotification *)notification{ [window disableupdatesUntilFlush];}
我的问题是我试图使用碳调用:
disableScreenUpdates();EnableScreenUpdates();
而不是可可的:
NSdisableScreenUpdates();NSEnableScreenUpdates();总结
以上是内存溢出为你收集整理的objective-c – NSSplitView中的NSOpenGLView全部内容,希望文章能够帮你解决objective-c – NSSplitView中的NSOpenGLView所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)