Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added Document Types to allow files to be opened
  • Loading branch information
Franklin Webber committed Nov 13, 2011
1 parent 3a1f79b commit f8b7d3f
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 4,060 deletions.
10 changes: 2 additions & 8 deletions Gravy.xcodeproj/project.pbxproj
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -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>"; };
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 */,
Expand Down
19 changes: 0 additions & 19 deletions Gravy/AMAppDelegate.h

This file was deleted.

27 changes: 0 additions & 27 deletions Gravy/AMAppDelegate.m

This file was deleted.

6 changes: 3 additions & 3 deletions Gravy/AMDocumentController.m
Expand Up @@ -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"
Expand Down Expand Up @@ -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];

}

Expand Down
17 changes: 15 additions & 2 deletions Gravy/Gravy-Info.plist
Expand Up @@ -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>
Expand All @@ -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>

0 comments on commit f8b7d3f

Please sign in to comment.