BathyScapheのアイコンセット生成&適用ツール
リビジョン | 90787762964f9a44db234639f8677ef8396b3179 (tree) |
---|---|
日時 | 2012-06-02 23:15:55 |
作者 | masakih <masakih@user...> |
コミッター | masakih |
[Fix] ウインドウの復帰でToolbarタブでのウインドウサイズがおかしくなる現象を修正
@@ -533,10 +533,15 @@ static NSArray *sThreadIdentifiers; | ||
533 | 533 | |
534 | 534 | - (void)window:(NSWindow *)window willEncodeRestorableState:(NSCoder *)state |
535 | 535 | { |
536 | + [state encodeObject:[[tab selectedTabViewItem] identifier] forKey:@"BSICSSelectedItemIdentifier"]; | |
536 | 537 | [state encodeRect:[window frame] forKey:@"BSICSWindowFrameState"]; |
537 | 538 | } |
538 | 539 | - (void)window:(NSWindow *)window didDecodeRestorableState:(NSCoder *)state |
539 | 540 | { |
541 | + NSString *identifier = [state decodeObjectForKey:@"BSICSSelectedItemIdentifier"]; | |
542 | + if(identifier) { | |
543 | + [tab selectTabViewItemWithIdentifier:identifier]; | |
544 | + } | |
540 | 545 | NSRect r = [state decodeRectForKey:@"BSICSWindowFrameState"]; |
541 | 546 | if(NSEqualRects(r, NSZeroRect)) { |
542 | 547 | NSPoint tl = [window cascadeTopLeftFromPoint:NSMakePoint(0, 0)]; |