Re: Bundle and window server interaction
Re: Bundle and window server interaction
- Subject: Re: Bundle and window server interaction
- From: Alastair Houghton <email@hidden>
- Date: Mon, 18 Jan 2010 14:22:39 +0000
On 18 Jan 2010, at 13:43, email@hidden 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 (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