Dynamically updating app icon in OSX

When I was using Chrome to download something in Lion, a badge with downloading progress which dynamically updates itself is shown on my dock.

How may one go about achieving that?

Answers


I think you are looking for this piece of code:

[[[NSApplication sharedApplication] dockTile] setBadgeLabel:@"My String"];

Here you can find all the information you need (it's the NSDockTile Class Reference).


Need Your Help

UML Tools to draw class Diagram for Java Project

eclipse-plugin uml class-diagram

I have to draw a class diagram using a existing source code in Java.

Resize font using fontsquirrel to match Arial

css fonts font-face font-size

I am using the new and amazing font Source Sans Pro as my base font (it really is that good quality and fed up of seeing Ariel every where).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.