summaryrefslogtreecommitdiffstats
blob: d2a06b3dd02bae1f31b20bbb60621170883fd188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "SwifTools/Dock/MacOSXDock.h"

#include <AppKit/AppKit.h>
#include <Cocoa/Cocoa.h>

#include "Swiften/Base/String.h"

namespace Swift {

MacOSXDock::MacOSXDock(CocoaApplication*) {
}

void MacOSXDock::setMessage(const String& label) {
	NSString *labelString = [[NSString alloc] initWithUTF8String: label.getUTF8Data()];
	[[NSApp dockTile] setBadgeLabel: labelString];
	[labelString release];
	[NSApp requestUserAttention: NSInformationalRequest];
}

}