Preparing for actual UI.

This commit is contained in:
preble 2010-10-07 01:59:49 -04:00
parent 1b66f2a808
commit fa54a6c0ff
5 changed files with 955 additions and 1238 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,16 @@
//
// IJInventoryWindowController.h
// InsideJob
//
// Created by Adam Preble on 10/7/10.
// Copyright 2010 Adam Preble. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface IJInventoryWindowController : NSWindowController {
}
@end

View File

@ -0,0 +1,31 @@
//
// IJInventoryWindowController.m
// InsideJob
//
// Created by Adam Preble on 10/7/10.
// Copyright 2010 Adam Preble. All rights reserved.
//
#import "IJInventoryWindowController.h"
@implementation IJInventoryWindowController
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView
{
return 0;
}
- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
return nil;
}
- (void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
}
@end

View File

@ -14,6 +14,7 @@
668B2560125D5C1C0060BF71 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 668B255F125D5C1C0060BF71 /* libz.dylib */; };
668B27AF125D8EFD0060BF71 /* IJMinecraftLevel.m in Sources */ = {isa = PBXBuildFile; fileRef = 668B27AE125D8EFD0060BF71 /* IJMinecraftLevel.m */; };
668B27B2125D8F8E0060BF71 /* IJInventoryItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 668B27B1125D8F8E0060BF71 /* IJInventoryItem.m */; };
668B27F2125D963F0060BF71 /* IJInventoryWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 668B27F1125D963F0060BF71 /* IJInventoryWindowController.m */; };
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
@ -39,6 +40,8 @@
668B27AE125D8EFD0060BF71 /* IJMinecraftLevel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IJMinecraftLevel.m; sourceTree = "<group>"; };
668B27B0125D8F8E0060BF71 /* IJInventoryItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IJInventoryItem.h; sourceTree = "<group>"; };
668B27B1125D8F8E0060BF71 /* IJInventoryItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IJInventoryItem.m; sourceTree = "<group>"; };
668B27F0125D963F0060BF71 /* IJInventoryWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IJInventoryWindowController.h; sourceTree = "<group>"; };
668B27F1125D963F0060BF71 /* IJInventoryWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IJInventoryWindowController.m; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* InsideJob-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "InsideJob-Info.plist"; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* InsideJob.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InsideJob.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@ -61,6 +64,7 @@
children = (
256AC3D80F4B6AC300CF3369 /* InsideJobAppDelegate.h */,
256AC3D90F4B6AC300CF3369 /* InsideJobAppDelegate.m */,
668B27F3125D96470060BF71 /* Interface */,
668B2551125D59BF0060BF71 /* Model */,
668B2559125D5BB90060BF71 /* Categories */,
);
@ -156,6 +160,15 @@
name = Categories;
sourceTree = "<group>";
};
668B27F3125D96470060BF71 /* Interface */ = {
isa = PBXGroup;
children = (
668B27F0125D963F0060BF71 /* IJInventoryWindowController.h */,
668B27F1125D963F0060BF71 /* IJInventoryWindowController.m */,
);
name = Interface;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -227,6 +240,7 @@
668B255C125D5BCA0060BF71 /* NSData+CocoaDevAdditions.m in Sources */,
668B27AF125D8EFD0060BF71 /* IJMinecraftLevel.m in Sources */,
668B27B2125D8F8E0060BF71 /* IJInventoryItem.m in Sources */,
668B27F2125D963F0060BF71 /* IJInventoryWindowController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -17,9 +17,9 @@
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
NSData *fileData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:@"../../world5-level.dat"]];
IJMinecraftLevel *level = [IJMinecraftLevel nbtContainerWithData:fileData];
[level inventory];
// NSData *fileData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:@"../../world5-level.dat"]];
// IJMinecraftLevel *level = [IJMinecraftLevel nbtContainerWithData:fileData];
// [level inventory];
// NSData *newData = [level writeData];
// [newData writeToURL:[NSURL fileURLWithPath:@"../../output.nbt"] atomically:NO];