Skip navigation.
 
mlRe: Initializing the menubar
FROM : Robert Nikander
DATE : Sun Nov 04 18:05:08 2007

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

Related mailsAuthorDate
mlInitializing the menubar without Interface Builder Robert Nikander Nov 3, 18:12
mlRe: Initializing the menubar without Interface Builder Jeff Johnson Nov 3, 18:37
mlRe: Initializing the menubar without Interface Builder Jeff Johnson Nov 3, 18:46
mlRe: Initializing the menubar without Interface Builder mmalc crawford Nov 3, 19:29
mlRe: Initializing the menubar without Interface Builder Robert Nikander Nov 3, 19:54
mlRe: Initializing the menubar without Interface Builder Robert Nikander Nov 3, 20:08
mlRe: Initializing the menubar without Interface Builder mmalc crawford Nov 4, 00:13
mlRe: Initializing the menubar Robert Nikander Nov 4, 01:15
mlRe: Initializing the menubar Eric Schlegel Nov 4, 17:25
mlRe: Initializing the menubar Robert Nikander Nov 4, 18:05