Re: a.out vs .app bundles
Re: a.out vs .app bundles
- Subject: Re: a.out vs .app bundles
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 15 Mar 2002 18:37:40 +0000
On Friday, March 15, 2002, at 06:22 PM, Gregor Nobis wrote:
Now here's my Question: Is there a way to run a.out without the bundle
structure around it, that will make the app act normal? I guess it
might have something to do with my main function not calling
NSApplicationMain but [NSApplication sharedApplication] and [NSApp run]
instead, not sure, though.
I did some fiddling with NSApplication sans bundle a while back, it was
a mess... Especially if you wanted an Apple menu, you had to initialise
a private class and play around. It's not supported by Apple, and unless
you have a really good reason for doing it I would suggest avoiding it
at all costs :-)
Oh, and there is more thing: How come the above mentioned app does not
have a menu bar whenever the keyboard menu is not shown (due to only
one layout being selected in it's pref pane) but gets one (containing
the apple menu and the generic application menu) when the keyboard menu
is shown? Keyboard equivalents for the menu items work either way.
You probably need to instantiate an NSMenu and set it as the app's main
menu or something like that, I seem to remember menus being iffy.
It's a bit lame that you can't do this type of thing easily...
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.