@interface GVApplicationDelegate : NSObject {
GVAttributeInspectorController *_attributeInspectorController;
+ BOOL _applicationStarted;
}
- (IBAction)showAttributeInspector:(id)sender;
+- (BOOL)applicationOpenUntitledFile:(NSApplication*)theApplication;
+- (void)applicationDidFinishLaunching:(NSNotification*)aNotification;
+
@end
[_attributeInspectorController showWindow:sender];
}
+- (BOOL)applicationOpenUntitledFile:(NSApplication*)theApplication
+{
+ if (!_applicationStarted)
+ [[NSDocumentController sharedDocumentController] openDocument:self];
+ return YES;
+}
+
+- (void)applicationDidFinishLaunching:(NSNotification*)aNotification
+{
+ _applicationStarted = YES;
+}
+
@end