• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: try this for fadebackin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try this for fadebackin


  • Subject: Re: try this for fadebackin
  • From: Fabian <email@hidden>
  • Date: Wed, 13 Aug 2008 22:34:01 +0200

Thanks Tolga. I tried your code but no luck I'm afraid. The only
difference between your code and mine seems to be you have 25 seconds
reservation instead of kCGMaxDisplayReservationInterval (which
shouldn't matter as the max interval is 15 seconds), and set your
fade-in to asynchronous instead of synchronous (TRUE = wait for
completion, not the other way around). But no, I still only have
random success... Any other ideas?

Thanks.

On Wed, Aug 13, 2008 at 8:07 PM, Tolga Katas <email@hidden> wrote:
> - (void)fadeOut:(float)seconds
> {
> err = CGAcquireDisplayFadeReservation (25, &tokenPtr);
> CGDisplayFade (tokenPtr,
>   seconds,                        // 1 second
>   kCGDisplayBlendNormal,      // start
>   kCGDisplayBlendSolidColor,  // end
>   0.0, 0.0, 0.0,              // black
>   TRUE                       // don't wait to finish
>   );
>
>
>
> }
> - (void)fadeBackIn:(float)seconds
> {
>
> CGDisplayFade (
>   tokenPtr,
>   seconds,
>   kCGDisplayBlendSolidColor,
>   kCGDisplayBlendNormal,
>   0.0, 0.0, 0.0,
>   FALSE
>   );
>
> err = CGReleaseDisplayFadeReservation (tokenPtr);
> }
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Programmatic removal of an object..
  • Next by Date: Re: Core Data Bindings. weird behavior.
  • Previous by thread: Checking whether Spotlight indexing is enabled for a volume
  • Next by thread: compile error when protocol not implemented?
  • Index(es):
    • Date
    • Thread