Re: Losing Focus
Re: Losing Focus
- Subject: Re: Losing Focus
- From: Francisco Tolmasky <email@hidden>
- Date: Tue, 8 Jun 2004 20:10:33 -0700
The reason I want to do this is because I have an expanding textfield
like the one in itunes. When one resizes the window it messes it up,
not only implementationally, but theoretically. In other words I
wouldn't know what the behavior would be in this situation. So, I
would like it to just lose focus when you click something else.
On Jun 8, 2004, at 7:55 PM, Allan Odgaard wrote:
On 9. Jun 2004, at 4:10, Francisco Tolmasky wrote:
I noticed some controls lose focus just by clicking anywhere else
Which controls do that? I have noticed that e.g. scrolling views in
iTunes take focus away from the current view, but that is inconsistent
with the rest of the OS and a constant source of frustration if you
ask me ;)
How can I make my control lose focus just by clicking away, for
example make it lost focus when you go to resize the window.
Is that really a behavior you strive for? What is the advantage of
having the current view loose focus just because the window is
resized?
That said, you'd probably need to catch mouse down events and then
send makeFirstResponder:nil to your window. But most likely mouse down
events outside your view are not sent to your view, unless perhaps you
setup a tracking rectangle larger than your view (as these are handled
at the window level).
Francisco Tolmasky
email@hidden
http://www-scf.usc.edu/~tolmasky/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.