Open Atom src when run via Xcode

This commit is contained in:
Corey Johnson
2012-09-25 09:57:48 -07:00
parent bea3c88ea1
commit cf48665a03

View File

@@ -156,7 +156,14 @@
[self runSpecsThenExit:true];
}
else {
[self open:[self.arguments objectForKey:@"path"]];
NSString *path = [self.arguments objectForKey:@"path"];
// Just a hack to open the Atom src by default when we run from xcode
#ifdef RESOURCE_PATH
if (!path) path = [NSString stringWithUTF8String:RESOURCE_PATH];
#endif
[self open:path];
}
}