Skip to content
Browse files

Added Document Types to allow files to be opened

  • Loading branch information...
1 parent 3a1f79b commit f8b7d3f4940b33b16d2b01ebde9684c1985147ae @burtlo committed Nov 13, 2011
Showing with 401 additions and 4,060 deletions.
  1. +2 −8 Gravy.xcodeproj/project.pbxproj
  2. +0 −19 Gravy/AMAppDelegate.h
  3. +0 −27 Gravy/AMAppDelegate.m
  4. +3 −3 Gravy/AMDocumentController.m
  5. +15 −2 Gravy/Gravy-Info.plist
  6. +381 −4,001 Gravy/en.lproj/MainMenu.xib
View
10 Gravy.xcodeproj/project.pbxproj
@@ -19,7 +19,6 @@
E281AB2F147067F600F35708 /* Achievement.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB2C147067F600F35708 /* Achievement.m */; };
E281AB30147067F600F35708 /* AchievementRequirement.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB2E147067F600F35708 /* AchievementRequirement.m */; };
E281AB33147067FC00F35708 /* Achievements.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB32147067FC00F35708 /* Achievements.m */; };
- E281AB361470680200F35708 /* AMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB351470680200F35708 /* AMAppDelegate.m */; };
E281AB391470680800F35708 /* AMDocumentController.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB381470680800F35708 /* AMDocumentController.m */; };
E281AB3E1470682500F35708 /* GameObject.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB3B1470682500F35708 /* GameObject.m */; };
E281AB3F1470682500F35708 /* GameObjects.m in Sources */ = {isa = PBXBuildFile; fileRef = E281AB3D1470682500F35708 /* GameObjects.m */; };
@@ -74,8 +73,6 @@
E281AB2E147067F600F35708 /* AchievementRequirement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AchievementRequirement.m; sourceTree = "<group>"; };
E281AB31147067FC00F35708 /* Achievements.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Achievements.h; sourceTree = "<group>"; };
E281AB32147067FC00F35708 /* Achievements.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Achievements.m; sourceTree = "<group>"; };
- E281AB341470680200F35708 /* AMAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AMAppDelegate.h; sourceTree = "<group>"; };
- E281AB351470680200F35708 /* AMAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AMAppDelegate.m; sourceTree = "<group>"; };
E281AB371470680800F35708 /* AMDocumentController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AMDocumentController.h; sourceTree = "<group>"; };
E281AB381470680800F35708 /* AMDocumentController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AMDocumentController.m; sourceTree = "<group>"; };
E281AB3A1470682500F35708 /* GameObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameObject.h; sourceTree = "<group>"; };
@@ -169,12 +166,10 @@
children = (
E281AAF31470667300F35708 /* GVAppDelegate.h */,
E281AAF41470667300F35708 /* GVAppDelegate.m */,
- E281AB341470680200F35708 /* AMAppDelegate.h */,
- E281AB351470680200F35708 /* AMAppDelegate.m */,
- E281AB181470675C00F35708 /* Views */,
- E281AB171470674D00F35708 /* Utilities */,
E281AB161470674900F35708 /* Adapters */,
E281AB151470673F00F35708 /* Models */,
+ E281AB171470674D00F35708 /* Utilities */,
+ E281AB181470675C00F35708 /* Views */,
E281AAE81470667300F35708 /* Supporting Files */,
);
path = Gravy;
@@ -436,7 +431,6 @@
E281AB2F147067F600F35708 /* Achievement.m in Sources */,
E281AB30147067F600F35708 /* AchievementRequirement.m in Sources */,
E281AB33147067FC00F35708 /* Achievements.m in Sources */,
- E281AB361470680200F35708 /* AMAppDelegate.m in Sources */,
E281AB391470680800F35708 /* AMDocumentController.m in Sources */,
E281AB3E1470682500F35708 /* GameObject.m in Sources */,
E281AB3F1470682500F35708 /* GameObjects.m in Sources */,
View
19 Gravy/AMAppDelegate.h
@@ -1,19 +0,0 @@
-//
-// AMAppDelegate.h
-// asset manager
-//
-// Created by Franklin Webber on 11/2/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "Achievements.h"
-#import "DocumentController.h"
-
-@interface AMAppDelegate : NSObject <NSApplicationDelegate> {
-
-}
-
-@property (nonatomic,retain) DocumentController *documentController;
-
-@end
View
27 Gravy/AMAppDelegate.m
@@ -1,27 +0,0 @@
-//
-// AMAppDelegate.m
-// asset manager
-//
-// Created by Franklin Webber on 11/2/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
-//
-
-
-#import "AMAppDelegate.h"
-#import "Achievement.h"
-
-@implementation AMAppDelegate
-
-@synthesize documentController;
-
-- (void)awakeFromNib {
-
-}
-
-- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
-{
-
-
-}
-
-@end
View
6 Gravy/AMDocumentController.m
@@ -8,7 +8,7 @@
#import "AMDocumentController.h"
#import "Achievements.h"
-#import "AMAppDelegate.h"
+#import "GVAppDelegate.h"
#import "DocumentController.h"
#import "GameObjects.h"
#import "PetsDocumentController.h"
@@ -49,8 +49,8 @@ - (void)openDocument:(id)sender {
[petsDocController loadWindow];
- AMAppDelegate *appDelegate = (AMAppDelegate *)[[NSApplication sharedApplication] delegate];
- [appDelegate setDocumentController:documentController];
+// GVAppDelegate *appDelegate = (AMAppDelegate *)[[NSApplication sharedApplication] delegate];
+// [appDelegate setDocumentController:documentController];
}
View
17 Gravy/Gravy-Info.plist
@@ -6,8 +6,6 @@
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string></string>
<key>CFBundleIdentifier</key>
<string>Webber.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
@@ -30,5 +28,20 @@
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
+ <key>NSDocumentClass</key>
+ <string>NSDocument</string>
+ <key>CFBundleTypeIconFile</key>
+ <string>resource</string>
+ <key>CFBundleTypeName</key>
+ <string>Resource Folder</string>
+ <key>LSHandlerRank</key>
+ <string>None</string>
+ </dict>
+ </array>
</dict>
</plist>
View
4,382 Gravy/en.lproj/MainMenu.xib
381 additions, 4,001 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit f8b7d3f

Please sign in to comment.
Something went wrong with that request. Please try again.