forked from veryweblog/ichm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ICHMApplication.m
46 lines (37 loc) · 1.17 KB
/
ICHMApplication.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
//
// ICHMApplication.m
// ichm
//
// Created by Robin Lu on 7/16/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "ICHMApplication.h"
#import "ITSSProtocol.h"
#import "BookmarkController.h"
@implementation ICHMApplication
@synthesize textEncodingMenu;
- (void)applicationWillFinishLaunching:(NSNotification *)notification {
[NSURLProtocol registerClass:[ITSSProtocol class]];
}
- (void)applicationWillTerminate:(NSNotification *)notification {
[NSURLProtocol unregisterClass:[ITSSProtocol class]];
}
#pragma mark links
- (IBAction)donate:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=iamawalrus%40gmail%2ecom&item_name=iCHM&amount=4%2e99&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"]];
}
- (IBAction)homepage:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.robinlu.com/blog/ichm"]];
}
#pragma mark bookmark
- (BookmarkController*) bookmarkController
{
if(!bookmarkController)
{
bookmarkController = [[BookmarkController alloc] init];
}
return bookmarkController;
}
@end