Corey, Corey, Corey...

This commit is contained in:
Corey Johnson
2011-11-11 14:14:09 -08:00
parent b5d9fbc835
commit 2512b48293
3 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@
@synthesize controllers;
- (AtomController *)createController:(NSString *)path {
AtomController *controller = [[AtomController alloc] initWithPath:path];
AtomController *controller = [[AtomController alloc] initWithURL:path];
[controllers addObject:controller];
return controller;

View File

@@ -7,9 +7,9 @@
}
@property (retain) WebView *webView;
@property (retain, readonly) NSString *path;
@property (retain, readonly) NSString *url;
@property (retain) JSCocoa *jscocoa;
- (AtomController *)initWithPath:(NSString *)aPath;
- (AtomController *)initWithURL:(NSString *)url;
@end

View File

@@ -7,7 +7,7 @@
@implementation AtomController
@synthesize webView, path, jscocoa;
@synthesize webView, url, jscocoa;
- (void)dealloc {
[jscocoa unlinkAllReferences];
@@ -15,14 +15,14 @@
[jscocoa release]; jscocoa = nil;
[webView release];
[path release];
[url release];
[super dealloc];
}
- (id)initWithPath:(NSString *)_path {
- (id)initWithURL:(NSString *)_url {
self = [super initWithWindowNibName:@"AtomWindow"];
path = [[_path stringByStandardizingPath] retain];
url = [[_url stringByStandardizingPath] retain];
[self.window makeKeyWindow];