Screen saver created with QCView not working in Snow Leopard

37 views
Skip to first unread message

Decoder

unread,
Jan 20, 2012, 11:22:51 AM1/20/12
to cocoa-unbound
Hi List,

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?

Thanks

Michael Ash

unread,
Jan 20, 2012, 11:28:04 AM1/20/12
to cocoa-...@googlegroups.com
On Jan 20, 2012, at 11:22 AM, Decoder wrote:

> 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.

Screensavers need to be compiled 32/64-bit with garbage collection supported or required in the 64-bit architecture if they are to work on 64-bit systems. I don't see that in your list of settings, so I'm betting that's the problem.

Mike

Decoder

unread,
Jan 25, 2012, 11:17:01 AM1/25/12
to cocoa-unbound
Hi Mike,

Thanks for you reply...

I checked the settings what you suggested and found to be same...

One more thing... if I don't use QCView then it works fine... but if
use it, it shows same message.

Some problem while using quartz ?

Also in console it is displaying message:

25/01/12 9:45:38 PM System Preferences[6593] invalid context

Any clue?
Reply all
Reply to author
Forward
0 new messages