-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocationAppAppDelegate.h
More file actions
42 lines (34 loc) · 1.21 KB
/
LocationAppAppDelegate.h
File metadata and controls
42 lines (34 loc) · 1.21 KB
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
32
33
34
35
36
37
38
39
40
41
42
//
// LocationAppAppDelegate.h
// LocationApp
//
// Created by James Hannah on 30/08/2009.
// Copyright 2009 James Hannah. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <WebKit/WebKit.h>
#import "LocationAppMapDelegate.h"
@interface LocationAppAppDelegate : NSObject <NSWindowDelegate, NSApplicationDelegate,CLLocationManagerDelegate> {
NSWindow *window;
CLLocationManager *clm;
LocationAppMapDelegate *mapwebvdelegate;
IBOutlet NSTextField* latLabel;
IBOutlet NSTextField* longLabel;
IBOutlet NSTextField* distLabel;
IBOutlet NSTextField* accuracyLabel;
IBOutlet NSButton* updateLocationButton;
IBOutlet WebView* mapWebView;
BOOL isZoomed; // Tracks if window is zoomed to detect changes
NSUserDefaultsController *defaults;
}
@property (assign) IBOutlet NSWindow *window;
- (IBAction) updateWindowWithLocation: sender;
- (IBAction) resizeOptionCheckboxClicked: sender;
// Window delegation
- (void)windowDidEndLiveResize:(NSNotification *)notification;
- (void)windowDidResize:(NSNotification *)notification;
// Location Manager delegation
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error;
@end