user1913523
user1913523

Reputation: 69

In which class(model or controller or view class) mouse event handling method should present

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

Answers (1)

Dietrich Epp
Dietrich Epp

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

Related Questions