• 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
Minimizing my app kills timer ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minimizing my app kills timer ?


  • Subject: Minimizing my app kills timer ?
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Sat, 2 May 2020 16:15:34 +0200

I've got an app that makes heavy use of ScreenSaverView (i.e., creates an
instance of a subclass).

In that view, I am creating some CALayers with animations,
which I exchange occasionally in method
   - (void) animateOneFrame
of my class.

All works fine, except when I minimize my app (using the yellow window button).
After un-minimizing the app, the method animateOneFrame never gets called again.

I assume this method gets called by a timer that is set up in the class
ScreenSaverView.

Could it be that minimizing the app somehow kills that timer?

Or can anybody else think of any reason why the method animateOneFrame in my
class would not get called any more after un-minimizing the app?

All hints and suggestions will be highly appreciated.


Best regards, Gabriel

_______________________________________________

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

  • Follow-Ups:
    • Re: Minimizing my app kills timer ?
      • From: Steve Mills via Cocoa-dev <email@hidden>
  • Prev by Date: Re: Inconsistent fullscreen modes
  • Next by Date: Re: Minimizing my app kills timer ?
  • Previous by thread: Re: Inconsistent fullscreen modes
  • Next by thread: Re: Minimizing my app kills timer ?
  • Index(es):
    • Date
    • Thread