Re: Losing Focus
Re: Losing Focus
- Subject: Re: Losing Focus
- From: Allan Odgaard <email@hidden>
- Date: Wed, 9 Jun 2004 04:55:56 +0200
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).
_______________________________________________
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.
References: | |
| >Losing Focus (From: Francisco Tolmasky <email@hidden>) |