-
Notifications
You must be signed in to change notification settings - Fork 20
/
AppDelegate.m
65 lines (55 loc) · 1.68 KB
/
AppDelegate.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// AppDelegate.m
// FormulatePro
//
// Created by Andrew de los Reyes on 7/5/06.
// Copyright 2006 Andrew de los Reyes. All rights reserved.
//
#import "AppDelegate.h"
@implementation AppDelegate
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)application
{
return NO;
}
- (IBAction)showLicense:(id)sender
{
NSString *path;
path = [[NSBundle mainBundle] pathForResource:@"LICENSE" ofType:@"txt"];
[[NSWorkspace sharedWorkspace] openFile:path];
}
- (IBAction)provideFeedback:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:
[NSURL URLWithString:@"mailto:[email protected]"]];
}
- (IBAction)viewBugList:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:
[NSURL
URLWithString:@"http://code.google.com/p/formulatepro/issues/list"]];
}
- (IBAction)fileNewBug:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:
[NSURL
URLWithString:@"http://code.google.com/p/formulatepro/issues/entry"]];
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
/* // this code copies the arrow cursor image to the clipboard
NSImage *arrow;
int i;
NSData *d;
NSPasteboard *pb;
[arrowToolButton setImage:[[NSCursor arrowCursor] image]];
arrow = [[NSCursor arrowCursor] image];
DLog(@"reps %d\n", i, [[arrow representations] count]);
d = [[arrow bestRepresentationForDevice:nil]
representationUsingType:NSTIFFFileType
properties:nil];
DLog(@"d = %x\n", d);
pb = [NSPasteboard generalPasteboard];
[pb declareTypes:[NSArray arrayWithObject:NSTIFFPboardType] owner:nil];
DLog(@"ok? %d\n", [pb setData:d forType:NSTIFFPboardType]);*/
}
@end