Commit ef32456d authored by Alexandre Lision's avatar Alexandre Lision

chat: animate dock icon

Using NSCriticalRequest makes the icon bounce to catch user attention
Icon comes back to normal when the app takes the focus.

Change-Id: I1a2504407223944775e0eac40a228bc6e5e3435d
Tuleap: #202
parent 76d59690
......@@ -89,6 +89,7 @@
NSDockTile *tile = [[NSApplication sharedApplication] dockTile];
NSString* label = unreadCount ? [NSString stringWithFormat:@"%d", unreadCount]: @"";
[tile setBadgeLabel:label];
[NSApp requestUserAttention:NSCriticalRequest];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment