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

Focus problem while launching app from the widget


  • Subject: Focus problem while launching app from the widget
  • From: Grzegorz Kopel <email@hidden>
  • Date: Sat, 8 Apr 2006 08:32:52 +0200

Hello,

I'd like to launch an external application from the widget but want this application to stay in the background. At the same time I'd like to keep the focus on my widget. I use the following code in my widget plug-in to launch the external app:

[[NSWorkspace sharedWorkspace]
launchAppWithBundleIdentifier:@"my.app.identifier"
options:NSWorkspaceLaunchWithoutActivation
additionalEventParamDescriptor:nil
launchIdentifier:NULL];


This code works as supposed, i.e. the app is launched in the background and the Dashboard environment is on the foreground. However the focus is "below" Dashboard: I can see that when I type on the keyboard -- the keyboard events are being sent to OS environment, not to the Dashboard. As my widget is supposed to wait for the keyboard events, I must click on it to make it active again.

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


Best regards, Gregory.

_______________________________________________
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: Focus problem while launching app from the widget
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Cocoa bindings performance
  • Next by Date: setProcessName: not working
  • Previous by thread: [Moderator] EOT Re: Licences & trial concepts
  • Next by thread: Re: Focus problem while launching app from the widget
  • Index(es):
    • Date
    • Thread