masakih

BSIconSetComposer(プロジェクト終了)

  • R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BathyScapheのアイコンセット生成&適用ツール


コミットメタ情報

リビジョン90787762964f9a44db234639f8677ef8396b3179 (tree)
日時2012-06-02 23:15:55
作者masakih <masakih@user...>
コミッターmasakih

ログメッセージ

[Fix] ウインドウの復帰でToolbarタブでのウインドウサイズがおかしくなる現象を修正

変更サマリ

差分

--- a/IconSetDocument.m
+++ b/IconSetDocument.m
@@ -533,10 +533,15 @@ static NSArray *sThreadIdentifiers;
533533
534534 - (void)window:(NSWindow *)window willEncodeRestorableState:(NSCoder *)state
535535 {
536+ [state encodeObject:[[tab selectedTabViewItem] identifier] forKey:@"BSICSSelectedItemIdentifier"];
536537 [state encodeRect:[window frame] forKey:@"BSICSWindowFrameState"];
537538 }
538539 - (void)window:(NSWindow *)window didDecodeRestorableState:(NSCoder *)state
539540 {
541+ NSString *identifier = [state decodeObjectForKey:@"BSICSSelectedItemIdentifier"];
542+ if(identifier) {
543+ [tab selectTabViewItemWithIdentifier:identifier];
544+ }
540545 NSRect r = [state decodeRectForKey:@"BSICSWindowFrameState"];
541546 if(NSEqualRects(r, NSZeroRect)) {
542547 NSPoint tl = [window cascadeTopLeftFromPoint:NSMakePoint(0, 0)];