Permalink
Browse files

Added an application delegate, to avoid having an untitled window on …

…app startup
  • Loading branch information...
1 parent 63a6bc1 commit 3269fb13951c52a36bbd13dcc08a7e54bd937965 Adrian Kosmaczewski committed Jul 18, 2010
Showing with 42 additions and 0 deletions.
  1. +17 −0 GUI/AppDelegate.h
  2. +19 −0 GUI/AppDelegate.m
  3. +6 −0 GUI/nib2objc.xcodeproj/project.pbxproj
View
@@ -0,0 +1,17 @@
+//
+// AppDelegate.h
+// nib2objc
+//
+// Created by Adrian on 7/18/10.
+// Copyright 2010 __MyCompanyName__. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface AppDelegate : NSObject <NSApplicationDelegate>
+{
+
+}
+
+@end
View
@@ -0,0 +1,19 @@
+//
+// AppDelegate.m
+// nib2objc
+//
+// Created by Adrian on 7/18/10.
+// Copyright 2010 __MyCompanyName__. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+
+@implementation AppDelegate
+
+- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
+{
+ return NO;
+}
+
+@end
@@ -10,6 +10,7 @@
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
3A92DE6311F308C300E0EF30 /* nib2objc.icns in Resources */ = {isa = PBXBuildFile; fileRef = 3A92DE6211F308C300E0EF30 /* nib2objc.icns */; };
+ 3A92E20211F3153000E0EF30 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A92E20111F3153000E0EF30 /* AppDelegate.m */; };
3AEDA04711F2578100D0D041 /* NSDictionary+Nib2ObjcExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AEDA00511F2578100D0D041 /* NSDictionary+Nib2ObjcExtensions.m */; };
3AEDA04811F2578100D0D041 /* NSNumber+Nib2ObjcExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AEDA00711F2578100D0D041 /* NSNumber+Nib2ObjcExtensions.m */; };
3AEDA04911F2578100D0D041 /* NSString+Nib2ObjcExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AEDA00911F2578100D0D041 /* NSString+Nib2ObjcExtensions.m */; };
@@ -64,6 +65,8 @@
2A37F4C4FDCFA73011CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
3A92DE6211F308C300E0EF30 /* nib2objc.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = nib2objc.icns; sourceTree = "<group>"; };
+ 3A92E20011F3153000E0EF30 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+ 3A92E20111F3153000E0EF30 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
3AEDA00411F2578100D0D041 /* NSDictionary+Nib2ObjcExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+Nib2ObjcExtensions.h"; sourceTree = "<group>"; };
3AEDA00511F2578100D0D041 /* NSDictionary+Nib2ObjcExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+Nib2ObjcExtensions.m"; sourceTree = "<group>"; };
3AEDA00611F2578100D0D041 /* NSNumber+Nib2ObjcExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSNumber+Nib2ObjcExtensions.h"; sourceTree = "<group>"; };
@@ -188,6 +191,8 @@
isa = PBXGroup;
children = (
3AEDA00211F2578100D0D041 /* NibProcessor */,
+ 3A92E20011F3153000E0EF30 /* AppDelegate.h */,
+ 3A92E20111F3153000E0EF30 /* AppDelegate.m */,
2A37F4AEFDCFA73011CA2CEA /* MyDocument.h */,
2A37F4ACFDCFA73011CA2CEA /* MyDocument.m */,
);
@@ -408,6 +413,7 @@
3AEDA06511F2578100D0D041 /* UIToolbarProcessor.m in Sources */,
3AEDA06611F2578100D0D041 /* UIViewProcessor.m in Sources */,
3AEDA06711F2578100D0D041 /* UIWebViewProcessor.m in Sources */,
+ 3A92E20211F3153000E0EF30 /* AppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

0 comments on commit 3269fb1

Please sign in to comment.