• 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: Icon not bouncing in Dock when App started
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Icon not bouncing in Dock when App started


  • Subject: Re: Icon not bouncing in Dock when App started
  • From: Markus Spoettl <email@hidden>
  • Date: Sat, 19 Mar 2011 12:41:15 +0100

On Mar 19, 2011, at 11:29 AM, Markus Spoettl wrote:
> In my document based application, when started (by clicking on the dock icon or otherwise), the icon's startup bounce motion interrupts near the top of the animation, stays there for around 0.3 - 0.5 seconds and then the icon drops to the base position instantly.

OK, shortly after clicking send I had an idea how to figure out what it might be caused by, and now I got closer: I have a layer hosting view in my document window, the view is layer hosting is switched on in -awakeFromNib

- (void)awakeFromNib
{
   [self setLayer:scopeLayer];
   [self setWantsLayer:YES];
}

scopeLayer is created and set up in the view's -initWithFrame:. This is causing the bounce-pause. When I remove these lines, bouncing works. Of course my view doesn't.

Now it gets really interesting: I've found that switching off "Automatic graphics switching" in the Energy Saver Preferences gets rid of the issue. So making the view layer hosting switches the graphics mode to the dedicated hardware. Why I don't know, it happens regardless of what the layer really is setup with, even if it never gets any content.

Is that a hardware issue then? Can someone recreate this on their hardware?

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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: Icon not bouncing in Dock when App started
      • From: Nick Zitzmann <email@hidden>
References: 
 >Icon not bouncing in Dock when App started (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Icon not bouncing in Dock when App started
  • Next by Date: Re: NSTask is intermittently failing to return results.
  • Previous by thread: Icon not bouncing in Dock when App started
  • Next by thread: Re: Icon not bouncing in Dock when App started
  • Index(es):
    • Date
    • Thread