使用 QCView 创建的屏幕保护程序在 Snow Leopard 中不起作用
我已经使用以下代码块使用 QCView 准备了屏幕保护程序:
- (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
{
self = [super initWithFrame:frame isPreview:isPreview];
if (self) {
qcView = [[QCView alloc] init];
if (!qcView) {
NSLog(@"could not create qc view");
}
[qcView setAutostartsRendering:YES];
if ([qcView loadCompositionFromFile:[[NSBundle mainBundle] pathForResource:@"AwayMessage" ofType:@"qtz"]] == NO) {
NSLog(@"Could not load");
}
[qcView setFrame:[self bounds]];
[self addSubview:qcView];
[self setAnimationTimeInterval:1/30.0];
}
return self;
}
问题是 - 当我尝试在系统首选项中查看它时,它是 显示此消息:您不能将 SampleScreenSaver 与 此版本的 Mac OS X。请联系供应商获取更新版本 屏幕保护程序的版本。
我使用以下配置使用 Xcode 3.2.5 来编译它:
架构 - 标准(32/64 位通用)
基础 SDK - Mac OS X 10.6
有效架构 - i386
C/C++ 编译器版本 - GCC 4.0
有人能建议解决方案吗?
I have prepared a screen saver with QCView using this block of code:
- (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
{
self = [super initWithFrame:frame isPreview:isPreview];
if (self) {
qcView = [[QCView alloc] init];
if (!qcView) {
NSLog(@"could not create qc view");
}
[qcView setAutostartsRendering:YES];
if ([qcView loadCompositionFromFile:[[NSBundle mainBundle] pathForResource:@"AwayMessage" ofType:@"qtz"]] == NO) {
NSLog(@"Could not load");
}
[qcView setFrame:[self bounds]];
[self addSubview:qcView];
[self setAnimationTimeInterval:1/30.0];
}
return self;
}
Problem is - when I am trying to see it in system preferences, it is
showing me this message: You cannot use the SampleScreenSaver with
this version of Mac OS X. Please contact the vendor to get a newer
version of the screen saver.
I am using following configurations to compile it using Xcode 3.2.5:
Architectures - Standard (32/64-bit Universal)
Base SDK - Mac OS X 10.6
Valid Architectures - i386
C/C++ Compiler Version - GCC 4.0
Can anyone suggest solution for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论