IJItemPropertiesViewController.m 503 B

1234567891011121314151617181920212223
  1. //
  2. // IJItemPropertiesViewController.m
  3. // InsideJob
  4. //
  5. // Created by Adam Preble on 10/9/10.
  6. // Copyright 2010 Adam Preble. All rights reserved.
  7. //
  8. #import "IJItemPropertiesViewController.h"
  9. #import "IJInventoryItem.h"
  10. @implementation IJItemPropertiesViewController
  11. @synthesize item;
  12. - (IBAction)closeButton:(id)sender
  13. {
  14. [self.view.window.parentWindow makeKeyWindow];
  15. [self commitEditing];
  16. self.item = nil; // Hack to prevent this item as coming up as 'lastItem' if they click again.
  17. }
  18. @end