summaryrefslogtreecommitdiffstats
blob: c10c707390d3a7e7517f48c897f4029d740506bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "Swiften/Application/MacOSX/MacOSXApplicationMessageDisplay.h"

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

#include "Swiften/Base/String.h"

namespace Swift {

MacOSXApplicationMessageDisplay::MacOSXApplicationMessageDisplay() {
}

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

}