|
Hello,
Suppose I have a view and would like to force the user to click on some
part of the view (e.g. to select something): How do I create a loop in
order to wait either for a mouse button or the ESC key being pressed
(the latter cancels the selection)?
I found the following code snippet in MouseTracker>>initialize:
SessionManager inputState loopWhile: [ self class capture == self ]
but, as #loopWhile: is a private method, I'm wondering if this is an
appropriate solution for my problem.
Regards,
Kai
|