Reputation: 69
I just want to know which class (model , controller or view class) should contain mouse event handling methods .
for example drawrect method should present in a view class .
Upvotes: 0
Views: 88
Reputation: 213817
Mouse event handling should be in the view class. Other classes do not receive mouse events — if you add a mouse event handler somewhere else, it will not be called.
Upvotes: 1