29 lines
665 B
Objective-C
29 lines
665 B
Objective-C
//
|
|
// InsideJobAppDelegate.m
|
|
// InsideJob
|
|
//
|
|
// Created by Adam Preble on 10/6/10.
|
|
// Copyright 2010 Adam Preble. All rights reserved.
|
|
//
|
|
|
|
#import "InsideJobAppDelegate.h"
|
|
#import "IJInventoryWindowController.h"
|
|
|
|
@implementation InsideJobAppDelegate
|
|
|
|
@synthesize inventoryWindowController;
|
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
|
|
[inventoryWindowController worldSelectionChanged:nil];
|
|
}
|
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
|
|
{
|
|
BOOL shouldClose = [inventoryWindowController windowShouldClose:nil];
|
|
if (shouldClose)
|
|
return NSTerminateNow;
|
|
else
|
|
return NSTerminateCancel;
|
|
}
|
|
|
|
@end
|