• 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: Launch another app without losing focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch another app without losing focus


  • Subject: Re: Launch another app without losing focus
  • From: Mike Kobb <email@hidden>
  • Date: Tue, 13 Jun 2006 00:39:57 -0700

I will try that. I do have LSBackgroundOnly set to 1 already, so I had thought that would probably manage all such issues.

Note: it's not deactivating System Preferences -- it's still the front-most application, with the name in the menu bar. It just deactivates the *window*!

--Mike

On Jun 12, 2006, at 11:38 PM, Greg Herlihy wrote:

Launching a faceless app should not deactivate the current app, because a
faceless app has no UI to activate. So I would verify that the LSUIElement
key is properly set to "1" in the info.plist of the helper app.


Greg


On 6/12/06 11:13 PM, "Mike Kobb" <email@hidden> wrote:

Greetings,

I'm working on a little project that is a System Preferences pane
which controls a server.

One of the things the pane may do is to launch a faceless background
"helper" application.  I'm doing this like so:

[[NSWorkspace sharedWorkspace] launchApplication:helperPath];

helperPath is the path to my helper app.

This works great, but when I do this, the System Preferences main
window becomes inactive, and I have to click the window to have it
become active again.

Is there a different way to launch an app like this so that I don't
lose activation?

Thanks!
--Mike



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Launch another app without losing focus
      • From: Michael Hall <email@hidden>
References: 
 >Re: Launch another app without losing focus (From: Greg Herlihy <email@hidden>)

  • Prev by Date: Refresh problem
  • Next by Date: Newbie Q : getting rid of MyDocument
  • Previous by thread: Re: Launch another app without losing focus
  • Next by thread: Re: Launch another app without losing focus
  • Index(es):
    • Date
    • Thread