postNotificationName:object:userInfo:
遠隔通知センターにポストします
-(void)postNotificationName:(NSString *)notificationName: object:(NSString *)anObject: userInfo:(NSDictionary *)userInfo:
解説
遠隔通知センターにポストします。
anObjectとuserInfoはnilかもしれない。
返り値
( void )
なし
引数
( NSString * )notificationName
通知名
( NSString * )anObject
オブジェクト
( NSDictionary * )userInfo
追加情報
フレームワーク
Foundation
クラス
NSDistributedNotificationCenter
Instance Methods
使用可能
10.0
参照
- postNotificationName:object:
例文
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"the string" forKey:@"key"]; [[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"DOServer_AllNotification" object:@"message" userInfo:userInfo ];