fileLabels
ファイルラベル
@property(readonly, copy) NSArray *fileLabelsvar fileLabels: [AnyObject] { get }
解説
ファイルラベルが変更になればNSWorkspaceDidChangeFileLabelsNotificationを受け取ります。
返り値
@property(readonly, copy) NSArray *fileLabelsvar fileLabels: [AnyObject] { get }
引数
@property(readonly, copy) NSArray *fileLabelsvar fileLabels: [AnyObject] { get }
フレームワーク
ApplicationKit
クラス
NSWorkspace
使用可能
10.6-
更新時のバージョン
OS X 10.10.3
Swift1.2
参照
関連記事(外部サイト)
例文
//NSWorkspace fileLabels @IBAction func function043(sender: AnyObject) { let theWorkspace : NSWorkspace = NSWorkspace.sharedWorkspace() var theLabels : [AnyObject] = theWorkspace.fileLabels for theObj in theLabels { NSLog("label = %@",theObj.description as String) } }