Re: Locking key window
Re: Locking key window
- Subject: Re: Locking key window
- From: Murat Konar <email@hidden>
- Date: Wed, 07 Mar 2007 18:14:07 -0800
On Mar 7, 2007, at 5:58 PM, Rick Hoge wrote:
The app runs fine at present, but I would like to find a way to
ensure that, while an experimental run is in progress, all keyboard
activity is processed by the window presented to the subject, even
if another window is clicked with the mouse. I had a vague feeling
that this might be achievable using either a run loop or one of the
firstResponder methods defined in NSResponder. However I have yet
to find a solution.
If anyone has any tips on how this might be achieved, it will
probably save some aggravation one day when someone clicks the
experimenter's window by mistake and later realizes that none of
the subject's responses were recorded!
You could make the subject's window modal, yes? See NSApplication's
runModalForWindow: method.
_murat
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden