-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKineoAppDelegate.m
33 lines (26 loc) · 915 Bytes
/
KineoAppDelegate.m
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
//
// KineoAppDelegate.m
// Kineo
//
// Created by Ben Yellin on 3/20/11.
// Copyright 2011 Been Yelling. All rights reserved.
//
#import "KineoAppDelegate.h"
#import "CameraWindowController.h"
#import "PreferencesController.h"
@implementation KineoAppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[[CameraWindowController sharedCameraWindow] showWindow:nil];
// Register Default Prefs
NSDictionary *defaultPrefs = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:48], @"numFrames",
[NSNumber numberWithFloat:1.0], @"frameRate", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultPrefs];
}
- (IBAction)showPreferences:(id)sender {
[[PreferencesController sharedPreferences] showWindow:nil];
}
- (IBAction)showCameraWindow:(id)sender {
[[CameraWindowController sharedCameraWindow] showWindow:nil];
}
@end