2
我想張貼在NSDistribtedNotificationCenter的通知,但我得到控制檯的消息:NSDistributedNotificationCenter通知失敗?
11年3月22日下午10點26分53秒AIM [138] *嘗試發佈分佈式通知(AIMIncomingMessages)與非字典userInfo(或不是有效的屬性列表)被忽略。
這是什麼意思?
編輯:下面的代碼:
[[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"AIMIncomingMessages"
object:nil
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:
@"Event Source", [NSNumber numberWithInt:3],
@"Message:", [arg2 attributedString],
@"Username:", [arg3 name],
@"Timestamp:", [NSDate date],
nil]
deliverImmediately: YES];
剛加入相關資源,感謝您的幫助 – user635064 2011-03-23 02:49:08
你太棒了! – user635064 2011-03-23 03:08:13