Skip to content

Commit

Permalink
Reworked to be a document-based app.
Browse files Browse the repository at this point in the history
  • Loading branch information
preble committed Mar 27, 2011
1 parent adebd33 commit c90197b
Show file tree
Hide file tree
Showing 11 changed files with 1,519 additions and 2,156 deletions.
53 changes: 53 additions & 0 deletions Classes/IJDocument.h
@@ -0,0 +1,53 @@
//
// IJDocument.h
// InsideJob
//
// Created by Adam Preble on 3/26/11.
// Copyright 2011 Adam Preble. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "IJInventoryView.h"

@class IJInventoryView;
@class IJMinecraftLevel;
@class MAAttachedWindow;
@class IJItemPropertiesViewController;


@interface IJDocument : NSDocument <IJInventoryViewDelegate> {
@private
IJMinecraftLevel *level;
NSArray *inventory;

IBOutlet IJInventoryView *inventoryView;
IBOutlet IJInventoryView *quickView;
IBOutlet IJInventoryView *armorView;

NSMutableArray *armorInventory;
NSMutableArray *quickInventory;
NSMutableArray *normalInventory;

// Search/Item List
IBOutlet NSSearchField *itemSearchField;
IBOutlet NSTableView *itemTableView;
NSArray *allItemIds;
NSArray *filteredItemIds;

//
IJItemPropertiesViewController *propertiesViewController;
MAAttachedWindow *propertiesWindow;
id observerObject;

// Document
int64_t sessionLockValue;
}

@property (nonatomic, retain) NSNumber *worldTime;

- (IBAction)updateItemSearchFilter:(id)sender;
- (IBAction)makeSearchFieldFirstResponder:(id)sender;
- (IBAction)itemTableViewDoubleClicked:(id)sender;


@end

0 comments on commit c90197b

Please sign in to comment.