Skip to content

Instantly share code, notes, and snippets.

@venj
Created August 15, 2011 04:58
Show Gist options
  • Save venj/1145734 to your computer and use it in GitHub Desktop.
Save venj/1145734 to your computer and use it in GitHub Desktop.
One line Fanfou Mac client
#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