make 'inspect element' work

This commit is contained in:
Chris Wanstrath
2011-08-18 22:13:13 -07:00
parent c41ab36f30
commit 5e6af504ab

View File

@@ -12,12 +12,14 @@
@synthesize window, webView;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification {
NSDictionary *defaults = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], @"WebKitDeveloperExtras",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
id path = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html"];
id html = [[NSString alloc] initWithContentsOfURL:path];