Tuesday, 24 June 2014

Screen saver created with QCView not working in Snow Leopard


hi all,

have prepared screen saver qcview using block of code:

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 - when trying see in system preferences, showing me message:
you cannot use samplescreensaver version of mac os x. please contact vendor newer version of screen saver.

using following configurations compile 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 suggest solution it?

 

for screensaver run on (snow) leopard (10.6-7):
gcc_enable_objc_gc = required

screensaver run on mountain lion (10.8):
gcc_enable_objc_gc = unsupported
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment