InsideJobAppDelegate.m 665 B

12345678910111213141516171819202122232425262728
  1. //
  2. // InsideJobAppDelegate.m
  3. // InsideJob
  4. //
  5. // Created by Adam Preble on 10/6/10.
  6. // Copyright 2010 Adam Preble. All rights reserved.
  7. //
  8. #import "InsideJobAppDelegate.h"
  9. #import "IJInventoryWindowController.h"
  10. @implementation InsideJobAppDelegate
  11. @synthesize inventoryWindowController;
  12. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
  13. [inventoryWindowController worldSelectionChanged:nil];
  14. }
  15. - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
  16. {
  17. BOOL shouldClose = [inventoryWindowController windowShouldClose:nil];
  18. if (shouldClose)
  19. return NSTerminateNow;
  20. else
  21. return NSTerminateCancel;
  22. }
  23. @end