• 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: 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

References: 
 >Bundle and window server interaction (From: "email@hidden" <email@hidden>)

  • Prev by Date: Bundle and window server interaction
  • Next by Date: Re: Bundle and window server interaction
  • Previous by thread: Bundle and window server interaction
  • Next by thread: Re: Bundle and window server interaction
  • Index(es):
    • Date
    • Thread