Bounce the icon in the dock..
Rob Keniger
rob at menumachine.com
Fri May 25 00:50:31 PDT 2007
On 25/05/2007, at 2:03 PM, Tom Jones wrote:
> I've been playing around with trying to get the icon in the dock to
> bounce
> with no luck. I'm trying
> [NSApp requestUserAttention:NSInformationalRequest];
>
> But I've had no luck with it.
What are you trying to achieve? A bouncing icon in the Dock has very
specific and well understood meaning to users.
[NSApp requestUserAttention:] will bounce the app icon only if the
application is not active. I don't think there's a way to bounce the
icon if your application is the frontmost app. This is by design as
the bouncing icon is designed to notify you that a background
application needs your attention.
--
Rob Keniger
More information about the MacOSX-dev
mailing list