postNotificationName:object:
遠隔通知センターにポストします
-(void)postNotificationName:(NSString *)notificationName: object:(NSString *)anObject:
解説
遠隔通知センターにポストします。
anObjectはnilかもしれない。
返り値
( void )
なし
引数
( NSString * )notificationName
通知名
( NSString * )anObject
オブジェクト
フレームワーク
Foundation
クラス
NSDistributedNotificationCenter
Instance Methods
使用可能
10.0
参照
- postNotificationName:object:userInfo:
例文
//全てのクライアントに通知 - (IBAction)notifyToAllClient:(id)sender { [[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"DOServer_AllNotification" object:@"message"]; }