• 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: Bundle and window server interaction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundle and window server interaction


  • Subject: Re: Bundle and window server interaction
  • From: has <email@hidden>
  • Date: Mon, 18 Jan 2010 15:55:47 +0000

Dave Keck wrote:

> That seems like a silly requirement for UI interaction...
>
> It seems you can get around it by making your app bundled and setting
> the LSUIElement key in your Info.plist, though.

Or use TransformProcessType to elevate your Unix style executable to GUI status:

OSStatus err = 0;
ProcessSerialNumber psn = {0, kCurrentProcess};
err = TransformProcessType(& psn, kProcessTransformToForegroundApplication);

(This is what rb-appscript calls the first time a standard GUI-less ruby process tries to display a Standard Additions dialog.)

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

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: Bundle and window server interaction
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: Typo in notification name
  • Next by Date: Re: NSURLRequest and NSOperationQueue
  • Previous by thread: Re: Bundle and window server interaction
  • Next by thread: Re: Bundle and window server interaction
  • Index(es):
    • Date
    • Thread