Hi,

  I have a strange problem, and I have no idea what causes it: 

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.

The only way that I can make the icon bounce correctly is if I don't create an 
empty document on app startup (by implementing 
-applicationShouldOpenUntitledFile: in the app delegate, returning NO). That 
means that something in my document setup code is causing this, but I have no 
idea what it might be. 

I tried bypassing -awakeFromNib in the NSWindowController subclass for the 
document window, the only place were anything that could possibly need CPU 
power at that time happens. That doesn't change anything. The documents window 
XIB is really very small, containing only a window with 3 views on it, no 
binding, nothing.

I thought that the dock icon animation was independent of the application, it's 
Dock.app that does that after all. So what in my application could cause an 
animation glitch like that?

I'm using Xcode 4, on a new 17'' MacBook Pro quad-core i7 with 8GB. That should 
be sufficient to bounce the icon, I guess. Other apps don't exhibit this issue. 
The app is compiled with LLVM 2.0. Interestingly the bounce-pause is much 
shorter when the app is started through the debugger, still noticeable, though.

Any ideas what that could be caused by?

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