blob: a4494d1657afbcc5728a0e88398497e837cded68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#import "Dock.h"
@implementation Dock
@synthesize badge;
- (void) setBadge:(NSString *)value
{
NSDockTile *tile = [[NSApplication sharedApplication] dockTile];
[tile setBadgeLabel:value];
}
- (NSString *) badge
{
NSDockTile *tile = [[NSApplication sharedApplication] dockTile];
return [tile badgeLabel];
}
#pragma mark WebScripting Protocol
+ (BOOL) isSelectorExcludedFromWebScript:(SEL)selector
{
return NO;
}
+ (BOOL) isKeyExcludedFromWebScript:(const char*)name
{
return NO;
}
@end
|