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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to