restoreWindowWithIdentifier:state:completionHandler:
- (BOOL)restoreWindowWithIdentifier:(NSString *)identifier state:(NSCoder *)state completionHandler:(void (^)(NSWindow *, NSError *))completionHandler
func restoreWindowWithIdentifier(_ identifier: String, state state: NSCoder, completionHandler completionHandler: (NSWindow!, NSError!) -> Void) -> Bool
解説
引数
Obj-C | Swift | ||
identifier | NSString * | String | 文字列 |
state | NSCoder * | NSCoder | |
completionHandler | (void (^)(NSWindow *,NSError *)) | (NSWindow!,NSError!) -> Void | 終了時に実行される |
identifier
(NSCoder *)state
(void (^)(NSWindow *,NSError *))completionHandler
終了時に実行される。
_ identifier: String
state state: NSCoder
completionHandler completionHandler: (NSWindow!,NSError!) -> Void)
フレームワーク
ApplicationKit
クラス
NSApplication
使用可能
10.7
更新時のバージョン
OS X 10.10