Re: Bundle and window server interaction

2010-01-18 Thread has
On Jan 18, 2010, at 10:04 PM, jonat...@mugginsoft.com wrote: >> Or use TransformProcessType to elevate your Unix style executable to GUI >> status: [...] > Looking at rb-appscript [...] the process is transformed only when error > -1713 occurs. Correct, errAENoUserInteraction = -1713. > Ide

Re: Bundle and window server interaction

2010-01-18 Thread jonat...@mugginsoft.com
On 18 Jan 2010, at 15:55, has wrote: > 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 U

Re: Bundle and window server interaction

2010-01-18 Thread has
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

Re: Bundle and window server interaction

2010-01-18 Thread Alastair Houghton
On 18 Jan 2010, at 14:30, jonat...@mugginsoft.com wrote: > On 18 Jan 2010, at 14:22, Alastair Houghton wrote: > >> Quite possibly. Have you tried calling NSApplicationLoad() at the top of >> your main() function? > Makes no difference as far as I can tell. > There is a practical point here as

Re: Bundle and window server interaction

2010-01-18 Thread Alastair Houghton
On 18 Jan 2010, at 14:30, jonat...@mugginsoft.com wrote: >> Quite possibly. Have you tried calling NSApplicationLoad() at the top of >> your main() function? > Makes no difference as far as I can tell. > There is a practical point here as I am trying to launch user interacting > AppleScript fro

Re: Bundle and window server interaction

2010-01-18 Thread Dave Keck
> Yes - I'd recommend placing your helper into your main app's > Contents/MacOS directory, per > http://developer.apple.com/mac/library/technotes/tn2007/tn2206.html. > (Although Apple seems to favor putting their helpers in > Contents/Resources, at least on 10.5.) I forgot to add that helper _bund

Re: Bundle and window server interaction

2010-01-18 Thread Dave Keck
> Silliness apart it's a legitimate question. Of course - I meant AS requiring one's app to be a bundle to interact with the user seemed strange. > I want to investigate NSAppleScript user interaction from within a foundation > tool. > The tool is already part of my app bundle. > > I don't reall

Re: Bundle and window server interaction

2010-01-18 Thread jonat...@mugginsoft.com
On 18 Jan 2010, at 14:28, 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. Silliness apart it's a legitimate question. I want to investigate NSA

Re: Bundle and window server interaction

2010-01-18 Thread Dave Keck
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. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Bundle and window server interaction

2010-01-18 Thread Alastair Houghton
On 18 Jan 2010, at 13:43, jonat...@mugginsoft.com wrote: > Can anyone cast any light on the interaction between the bundle structure and > the window server? > > The following modified Cocoa app main function displays a dialog when run as > an app. > If the executable is extracted from the bund

Bundle and window server interaction

2010-01-18 Thread jonat...@mugginsoft.com
Can anyone cast any light on the interaction between the bundle structure and the window server? The following modified Cocoa app main function displays a dialog when run as an app. If the executable is extracted from the bundle and run it fails (no user interaction allowed). The thing is that