diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPUserManager.h | 4 | ||||
-rw-r--r-- | Source/SPUserManager.m | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/SPUserManager.h b/Source/SPUserManager.h index febeb472..09c1ecb5 100644 --- a/Source/SPUserManager.h +++ b/Source/SPUserManager.h @@ -26,7 +26,7 @@ @class MCPConnection; -@interface SPUserManager : NSObject { +@interface SPUserManager : NSWindowController { NSPersistentStoreCoordinator *persistentStoreCoordinator; NSManagedObjectModel *managedObjectModel; @@ -40,7 +40,7 @@ IBOutlet NSOutlineView* outlineView; IBOutlet NSTabView *tabView; IBOutlet NSTreeController *treeController; - IBOutlet NSWindow *window; +// IBOutlet NSWindow *window; IBOutlet NSPanel *addHostSheet; } diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m index e44c9e51..973ff142 100644 --- a/Source/SPUserManager.m +++ b/Source/SPUserManager.m @@ -105,7 +105,7 @@ [self _initializeUsers]; // [NSThread detachNewThreadSelector:@selector(_initializeUsers) toTarget:self withObject:nil]; - [window makeKeyAndOrderFront:nil]; + [[self window] makeKeyAndOrderFront:nil]; } - (void)_initializeUsers @@ -293,7 +293,7 @@ if (!outlineView) { [NSBundle loadNibNamed:@"UserManagerView" owner:self]; } - [window makeKeyAndOrderFront:nil]; + [[self window] makeKeyAndOrderFront:nil]; } #pragma mark - @@ -362,7 +362,7 @@ - (IBAction)doCancel:(id)sender { [[self managedObjectContext] rollback]; - [window close]; + [[self window] close]; } - (IBAction)doApply:(id)sender @@ -375,7 +375,7 @@ } else { - [window close]; + [[self window] close]; } // [self _clearData]; } @@ -643,7 +643,7 @@ nil, nil, nil, - window, + [self window], self, NULL, NULL, |