我看不到苹果的文档https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/nsnotificationcenter_Class/Reference/Reference.html为什么NSNotification第三个参数经常是object:nil?
第三个参数对象的解释在这样一个How to create a class to send and receive events through NSNotificationCenter in Objective-C?它是零
没有人可以解释这一切的例子:为什么对象:无?
什么时候不是零?
观察者如何知道notificationSender,因为观察者设计模式应该将观察者与观察者分离:) – user310291
@ user310291这是一个真正的问题还是讽刺性的评论? – borrrden
这当然是一个真正的问题:我如何获得参考?这是否意味着我必须创建Observee实例或从某个控制器获取它? – user310291