notificationCenter
ワークスペースが通知する通知センターを返します
@property(readonly, strong) NSNotificationCenter *notificationCentervar notificationCenter: NSNotificationCenter { get }
解説
ワークスペースが通知する通知センターを返します。
返り値
通知センター
Objective-CNSNotificationCenter *notificationCenter: NSNotificationCenter { get }
引数
フレームワーク
ApplicationKit
クラス
NSWorkspace
使用可能
10.0
参照
更新時のバージョン
OS X 10.10
例文
#import "SetImage.h" @implementation SetImage - (IBAction)set:(id)sender { NSNotificationCenter *notifi = [[NSWorkspace sharedWorkspace] notificationCenter]; NSLog([notifi description]); } @end
//NSWorkspace sharedWorkspace() @IBAction func function001(sender: AnyObject) { let workspace : NSWorkspace = NSWorkspace.sharedWorkspace() NSLog("workspace %@",workspace.description) let notificationcenter : NSNotificationCenter = workspace.notificationCenter NSLog("notificationcenter %@",notificationcenter.description) }