Re: [NSApp mainMenu] returns nil under 10.4.3
Re: [NSApp mainMenu] returns nil under 10.4.3
- Subject: Re: [NSApp mainMenu] returns nil under 10.4.3
- From: Uli Kusterer <email@hidden>
- Date: Tue, 29 Nov 2005 11:15:37 +0100
Am 29.11.2005 um 10:41 schrieb Steve Checkoway:
Actually, I did exactly as you suggested and it works perfectly.
It's just that I find it hard to believe that using a nibless
application is all that uncommon. It certainly shouldn't require
expert (it is past midnight for me, so this doesn't make it 3 times
in one day) status to do it.
Keep in mind that NIBs are actually a major feature of Cocoa. You
set up your GUI graphically, even some of your app's interactions. So
not using one of the main features of an application is a fringe
case, and fringe cases are something "Jobs-2-era"-Apple hasn't really
managed to do as well as the original Toolbox did. (Not that I'm
complaining -- we were lucky to get such a good API the first time
round -- this stuff is hard!)
For most uses, a minimal NIB file is sufficient. You can always add
the other menus dynamically at runtime. An actual requirement to have
*all* menus built without a NIB sounds like a very odd thing to do,
and since you were surprised that you didn't have a few default
menus, I suspect you don't actually need that?
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden