• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Losing Focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Losing Focus
      • From: Francisco Tolmasky <email@hidden>
References: 
 >Losing Focus (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Insuring a path exists
  • Next by Date: Re: Losing Focus
  • Previous by thread: Losing Focus
  • Next by thread: Re: Losing Focus
  • Index(es):
    • Date
    • Thread