Custom Search

Wednesday, August 19, 2009

Cocoa Programming Tips: How to Make an Icon Bounce in the Apple Leopard's Dock section



This code will make the application's icon bounce in the Apple Leopard's Dock section.
This is made to request the user attention to provide information for the application.

if(![[NSApplication sharedApplication] isActive])
[[NSApplication sharedApplication]requestUserAttention:NSInformationalRequest];