链式依赖对象(Message Chain Object) 且不说,这个代码违反了“Tell,Don't Ask”原则,就这种链式导航结构就会使得客户端与链条上的所有对象直接耦合。
基于30个网页-相关网页
YES if a responder object handled the action message, no if no object in the responder chain handled the message.
如果接受对象接收到事件信息就返回YES,在响应链中没有对象响应消息就返回NO。
Channels send each object along a chain of channel sink objects prior to sending or after receiving a message.
信道在发送消息之前或接收消息之后沿信道接收器对象链发送每个对象。
应用推荐