• 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: Initializing the menubar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initializing the menubar


  • Subject: Re: Initializing the menubar
  • From: Robert Nikander <email@hidden>
  • Date: Sun, 4 Nov 2007 12:05:08 -0500


On Nov 4, 2007, at 11:25 AM, Eric Schlegel wrote:
On Nov 3, 2007, at 5:15 PM, Robert Nikander wrote:
<snip>
Why the difference? Does a cocoa binary have to run from within a bundle directory?

mach-o binaries on Mac OS X (whether they're Carbon or Cocoa) must be run from within a bundle in order to get the normal GUI interface and process management behavior. That includes being able to click on the app's windows to make it active and get a menubar.


It's recommended to just use a bundle, but if you really want to use a flat file, you can call TransformProcessType (HIServices/ Processes.h) from main() to make the app foreground-capable.


Thanks! I'll try to use a bundle, but for what I'm working on it's good to understand this and have the option.

Rob


_______________________________________________

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: 
 >Initializing the menubar without Interface Builder (From: Robert Nikander <email@hidden>)
 >Re: Initializing the menubar without Interface Builder (From: mmalc crawford <email@hidden>)
 >Re: Initializing the menubar without Interface Builder (From: Robert Nikander <email@hidden>)
 >Re: Initializing the menubar without Interface Builder (From: mmalc crawford <email@hidden>)
 >Re: Initializing the menubar (From: Robert Nikander <email@hidden>)
 >Re: Initializing the menubar (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Leopard problem: rotating buttons
  • Next by Date: Smart way to get "etched" borders in Leopard
  • Previous by thread: Re: Initializing the menubar
  • Next by thread: Why initialize the menubar without Interface Builder
  • Index(es):
    • Date
    • Thread