Store commit window frame in user defaults

This commit is contained in:
Allan Odgaard
2014-04-10 17:37:01 +07:00
parent b06474fbac
commit 62f2debfc8

View File

@@ -132,9 +132,11 @@ static NSUInteger const kOakCommitWindowCommitMessagesMax = 5;
_scrollView.borderType = NSNoBorder;
_scrollView.documentView = _tableView;
self.window = [[NSWindow alloc] initWithContentRect:NSMakeRect(600, 700, 400, 500) styleMask:(NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask|NSMiniaturizableWindowMask|NSTexturedBackgroundWindowMask) backing:NSBackingStoreBuffered defer:NO];
self.window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 540, 500) styleMask:(NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask|NSMiniaturizableWindowMask|NSTexturedBackgroundWindowMask) backing:NSBackingStoreBuffered defer:NO];
[self.window center];
self.window.delegate = self;
self.window.releasedWhenClosed = NO;
self.window.frameAutosaveName = @"Commit Window";
self.window.title = @"Commit";
[self.window setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
[self.window setContentBorderThickness:29 forEdge:NSMaxYEdge];