Nobik
Nobik

Reputation: 791

change dock-title programmatically

Is it possible, to change the title of my application at runtime, which is displayed in the dock?

Upvotes: 4

Views: 1904

Answers (2)

Ken Thomases
Ken Thomases

Reputation: 90531

No, it's not possible. The Dock uses the display name of the file system item for the process. For a bundled app, that's the app bundle.

That display name can be localized, but, for any given system language, that's a static property of the app bundle.

Upvotes: 1

diederikh
diederikh

Reputation: 25271

You might try to change the badge label of the dock tile:

[[NSApp dockTile] setBadgeLabel:@"My custom text"]

Upvotes: 4

Related Questions