-
Notifications
You must be signed in to change notification settings - Fork 1
/
AboutWindow.m
52 lines (33 loc) · 885 Bytes
/
AboutWindow.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
//
// About.m
// QAutoSaver
//
// Created by Jason Tratta 2/4/09.
// Copyright 2009 Sound Character. All rights reserved.
//
#import "AboutWindow.h"
@implementation AboutWindow
-(id)init
{
if (![super initWithWindowNibName:@"AboutWindow"])
return nil;
return self;
}
-(void)windowDidLoad
{
NSLog(@"About Nib is loaded");
}
-(IBAction)openPayPalInBrowser: (id) sender
{
NSWorkspace *payWorkSpace = [NSWorkspace sharedWorkspace];
NSURL *donateURL = [NSURL URLWithString:@"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5729107"];
NSLog(@"URL is %@", donateURL);
[payWorkSpace openURL:donateURL];
}
-(IBAction)imageGoHome:(id) sender
{
NSWorkspace *goHomeSpace = [NSWorkspace sharedWorkspace];
NSURL *homeURL = [NSURL URLWithString:@"http://www.jasontratta.com/qautosaver"];
[goHomeSpace openURL:homeURL];
}
@end