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

Icon not bouncing in Dock when App started


  • Subject: Icon not bouncing in Dock when App started
  • From: Markus Spoettl <email@hidden>
  • Date: Sat, 19 Mar 2011 11:29:39 +0100

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 (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: Markus Spoettl <email@hidden>
  • Prev by Date: Re: Quick way to find is a path is contained in another path?
  • Next by Date: Re: Icon not bouncing in Dock when App started
  • Previous by thread: Re: iPhone: animating UILabel width results in pre-stretched text
  • Next by thread: Re: Icon not bouncing in Dock when App started
  • Index(es):
    • Date
    • Thread