PDA

View Full Version : Screen saver created with QCView not working in Snow Leopard




Monaj
Jan 20, 2012, 10:22 AM
Hi All,

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



geowar
Aug 15, 2012, 02:44 PM
For your screensaver to run on (Snow) Leopard (10.6-7):
GCC_ENABLE_OBJC_GC = required

For your screensaver to run on Mountain Lion (10.8):
GCC_ENABLE_OBJC_GC = unsupported