我正在尝试测试是否发送了异步 NSNotifcation,并且我想在检查是否收到通知之前确保所有通知都已出列。
看来我不能使用NSNotificationQueue
唯一的出队方法,
- (void)dequeueNotificationsMatching:(NSNotification *)notification coalesceMask:(NSUInteger)coalesceMask
因为我的测试不知道通知,所以它不能匹配它。
我正在尝试测试是否发送了异步 NSNotifcation,并且我想在检查是否收到通知之前确保所有通知都已出列。
看来我不能使用NSNotificationQueue
唯一的出队方法,
- (void)dequeueNotificationsMatching:(NSNotification *)notification coalesceMask:(NSUInteger)coalesceMask
因为我的测试不知道通知,所以它不能匹配它。