Re: Use of performGammaFade in ScreenSavers
Re: Use of performGammaFade in ScreenSavers
- Subject: Re: Use of performGammaFade in ScreenSavers
- From: Eric Peyton <email@hidden>
- Date: Wed, 22 Aug 2001 23:28:44 -0500
On Wednesday, August 22, 2001, at 11:17 PM, Chris Donnelly. wrote:
Hey I'm a little new to cocoa and ObjC but I can't work out how I am
supposed to get the ScreenSaver interface NOT to gamma fade the screen
to black.
I am needing to 'obtain' the pixel map of the screen to use data from
this for use on texture maps.
I have tried
[performGammaFade NO]; in the initFrame method and also tried what I
think is refered to as overriding this method.
ie
- (BOOL) performGammaFade
{
return NO;
}
I would expect this is wrong due to the declaration being a little
different to routines like 'hasConfigureSheet'. I know it's likely got
something to do with the (+/-) bit.
Yes, change your override in your screensaver view to have a +, instead
of a -. Make it just like the header prototype.
Eric
My second question is regarding access to this big pixmap of the screens
pixels. I would gather it may be part of the 'view' that is inherited.
If someone could confirm this or perhaps suggest where I look.
==============================
performGammaFade
+(BOOL)performGammaFade
Indicates whether the screen saver application should perform a gradual
screen fade when it starts and stops the animation. This class method
allows the screen saver view to select how the desktop visibly
transitions to the screen saver view. If this method returns YES, the
screen will gradually darken before the animation begins. If it returns
NO, the transition will be immediate. The later behavior is more
appropriate if the screen saver animates a screen shot of the desktop,
as is the case for optical lens effects or digital pets. The default is
YES.
--
Chris Donnelly - email@hidden
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev