• 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: Focus problem while launching app from the widget
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus problem while launching app from the widget


  • Subject: Re: Focus problem while launching app from the widget
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 8 Apr 2006 15:15:18 +0200

Am 08.04.2006 um 08:32 schrieb Grzegorz Kopel:
[[NSWorkspace sharedWorkspace]
launchAppWithBundleIdentifier:@"my.app.identifier"
options:NSWorkspaceLaunchWithoutActivation
additionalEventParamDescriptor:nil
launchIdentifier:NULL];


(...)Does anybody know how to launch external application in the background, keeping the focus in dashboard widget at the same time?

Can't really guarantee it'll work, but I've had good luck working around other activation problems in another application using Launch Services APIs directly instead of NSWorkspace. The latter seems to insist on giving any app it launches keyboard focus, even if it's a background-only daemon...


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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: 
 >Focus problem while launching app from the widget (From: Grzegorz Kopel <email@hidden>)

  • Prev by Date: Looking For Outline View Examples Š
  • Next by Date: Re: Running an application owned by a different user
  • Previous by thread: Focus problem while launching app from the widget
  • Next by thread: setProcessName: not working
  • Index(es):
    • Date
    • Thread