aboutsummaryrefslogtreecommitdiffstats
path: root/Low Battery Yup d/FakeAlert.m
blob: ef504a652f0eca4517a45e0ebba17677767f6723 (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
//
//  FakeAlert.m
//  Low Battery Yup.d
//
//  Created by TW on 12/2/16.
//  Copyright (c) 2016 TW. All rights reserved.
//

#import "FakeAlert.h"

@implementation FakeAlert

- (NSRect)frame
{
	NSWindow *window = [[NSWindow alloc]
		initWithContentRect:NSMakeRect(0, 0, LOW_BATTERY_ALERT_WIDTH, LOW_BATTERY_ALERT_HEIGHT)
		styleMask:NSTitledWindowMask
		backing:NSBackingStoreBuffered
		defer:YES];
	[window center];

	NSRect frame = [window frame];

	[window release];

	return frame;
}

@end