Created
August 15, 2011 04:58
-
-
Save venj/1145734 to your computer and use it in GitHub Desktop.
One line Fanfou Mac client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Fanfou_For_MacAppDelegate.h" | |
#import <Webkit/WebKit.h> | |
@implementation Fanfou_For_MacAppDelegate | |
@synthesize window; | |
@synthesize webView; | |
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification | |
{ | |
// Insert code here to initialize your application | |
[[self.webView mainFrame] loadRequest:[NSURLRequest requestWithURL: [NSURL URLWithString:@"http://m.fanfou.com"]]]; //就是这行。 | |
} | |
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication { | |
return YES; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment