handle storage on the objective-c side.

This commit is contained in:
Corey Johnson
2011-11-04 17:43:15 -07:00
parent 9671e09be0
commit 750ede4f2c
8 changed files with 119 additions and 72 deletions

View File

@@ -22,8 +22,8 @@
}
- (id)initWithPath:(NSString *)aPath {
aPath = aPath ? aPath : @"/tmp";
aPath = aPath ? aPath : @"/tmp";
self = [super initWithWindowNibName:@"AtomWindow"];
path = [[aPath stringByStandardizingPath] retain];
@@ -33,6 +33,8 @@
- (void)windowDidLoad {
[super windowDidLoad];
[[webView inspector] showConsole:self];
[self.window setDelegate:self];
[webView setUIDelegate:self];
@@ -49,6 +51,7 @@
[[webView mainFrame] loadRequest:request];
}
// Helper methods that should go elsewhere
- (NSString *)tempfile {
char *directory = "/tmp";
char *prefix = "temp-file";