我真的不明白可可在通知和事件之间的区别。
例如我可以有这样的代码:
-(void)mouseMoved:(NSEvent*)event { … }
但不是
-(void)windowMoved:(NSEvent*)event { … }
对于第二个我必须使用NSNotification
- 为什么?
我真的不明白可可在通知和事件之间的区别。
例如我可以有这样的代码:
-(void)mouseMoved:(NSEvent*)event { … }
但不是
-(void)windowMoved:(NSEvent*)event { … }
对于第二个我必须使用NSNotification
- 为什么?