• 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: Michael Hall <email@hidden>
  • Date: Tue, 13 Jun 2006 08:50:23 -0500


On Jun 13, 2006, at 2:39 AM, Mike Kobb wrote:

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*!



Based on some JNI/java code I have that implements some LaunchServices functionality.
If I launch a application and either LSUIElement = 1 is set or that and LSBackgroundOnly = 1 the application window deactivates. Actually for the java application all the menus except the application menu also disappear. Although that menu does remain the launching application's.
Assuming


[[NSWorkspace sharedWorkspace] launchApplication:helperPath];


takes the launch services defaults (from ApplicationServices framework LaunchServices.h) ...


kLSLaunchDefaults = 0x00000001, /* default = open, async, use Info.plist, start Classic*/

you would think with the Info.plist set correctly that nothing should change as far as the current app's state.

I also see about the same thing just using 'open' from Terminal. The menu bar doesn't change there, but the console window deactivates (async - after the next command line prompt is shown, so that parts right).

Mike Hall        mikehall at spacestar dot net
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Launch another app without losing focus (From: Greg Herlihy <email@hidden>)
 >Re: Launch another app without losing focus (From: Mike Kobb <email@hidden>)

  • Prev by Date: iTunes Library binary file
  • Next by Date: Re: Object for variable array of fixed structures
  • Previous by thread: Re: Launch another app without losing focus
  • Next by thread: Re: Launch another app without losing focus
  • Index(es):
    • Date
    • Thread