&tag(Cocoa/Tips);
*目次 [#ie7adc88]
#contents
*関連ページ [#z5035224]
-[[Cocoa]]

*参考情報 [#a43b70e7]


*システム [#je421a8e]

**ウィンドウを閉じた際にアプリケーションを終了する [#hf914f95]
-なにもしないとアプリケーションは起動していてウィンドウがない状態となる。
-AppDelegate.swiftに以下を追加。
#pre{{
    func applicationShouldTerminateAfterLastWindowClosed(theApplication: NSApplication) -> Bool {
            return true
    }
}}


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS