• 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
losing focus momentarily, over and over again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

losing focus momentarily, over and over again


  • Subject: losing focus momentarily, over and over again
  • From: Bill Janssen <email@hidden>
  • Date: Thu, 7 May 2009 11:41:07 PDT

I'm losing focus, momentarily, over and over again, and I'd like to
figure out whether there's anything I can do about it.

I'm running a number of apps against the window server, like Cocoa
Emacs and Camino.  I run a background process that watches (via
Applescript calls to System Events) what's going on, then, if I'm
looking at a Web page or other document, grabs a copy of that
document, and does some stuff with it.

I've noticed this particularly in editors, like Emacs and TextEdit:
when I switch to a new document, I lose focus for a second or two --
plenty long enough to mistype something.  Then it comes right back to
my app.  A different app doesn't become "toplevel", though -- the
menubar never changes.

I'm guessing that some other app I'm running, probably in this
background process (programs like GNU "enscript", and "ghostscript",
but also like "sips", to create custom Finder icons), is stealing the
focus.  Or maybe System Events is doing it.  How?  Why?  Is there any
way I can prevent this from happening?

I know that posting to this list is a bit of a mis-post, but this
seems to be the closest to a "windowServer" list that Apple has, and
I know you folks are familiar with these focus issues.

Bill
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: losing focus momentarily, over and over again
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: Core Data Migration and the Inexperienced Younger Self
  • Next by Date: Re: Strategy for acting on changes in child objects?
  • Previous by thread: Re: [Q] Correct way to identify an application, Launch Services, & Spaces
  • Next by thread: Re: losing focus momentarily, over and over again
  • Index(es):
    • Date
    • Thread