Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (34 sloc) 1.243 kb
22fdf656 » James Hannah
2009-09-06 Initial Commit
1 //
2 // LocationAppAppDelegate.h
3 // LocationApp
4 //
5 // Created by James Hannah on 30/08/2009.
6 // Copyright 2009 James Hannah. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #import <Foundation/Foundation.h>
11 #import <CoreLocation/CoreLocation.h>
12 #import <WebKit/WebKit.h>
13
14 #import "LocationAppMapDelegate.h"
15
16 @interface LocationAppAppDelegate : NSObject <NSWindowDelegate, NSApplicationDelegate,CLLocationManagerDelegate> {
17 NSWindow *window;
18 CLLocationManager *clm;
19 LocationAppMapDelegate *mapwebvdelegate;
20 IBOutlet NSTextField* latLabel;
21 IBOutlet NSTextField* longLabel;
22 IBOutlet NSTextField* distLabel;
23 IBOutlet NSTextField* accuracyLabel;
24 IBOutlet NSButton* updateLocationButton;
25 IBOutlet WebView* mapWebView;
26 BOOL isZoomed; // Tracks if window is zoomed to detect changes
27
28 NSUserDefaultsController *defaults;
29 }
30
31 @property (assign) IBOutlet NSWindow *window;
32
33 - (IBAction) updateWindowWithLocation: sender;
34 - (IBAction) resizeOptionCheckboxClicked: sender;
35
36 // Window delegation
37 - (void)windowDidEndLiveResize:(NSNotification *)notification;
38 - (void)windowDidResize:(NSNotification *)notification;
39 // Location Manager delegation
40 - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error;
41
42 @end
Something went wrong with that request. Please try again.