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 bundle and run it fails (no user 
> interaction allowed).
> 
> The thing is that NSApplicationMain() is not executed.
> So the window server connection must arise as a result of the executable's 
> existence with a bundle.

Quite possibly.  Have you tried calling NSApplicationLoad() at the top of your 
main() function?

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to