Re: Bundle and window server interaction
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