Re: NSAlert::runModal doesn't work on 10.6
Re: NSAlert::runModal doesn't work on 10.6
- Subject: Re: NSAlert::runModal doesn't work on 10.6
- From: Graham Cox <email@hidden>
- Date: Wed, 24 Aug 2016 08:45:37 +1000
> On 24 Aug 2016, at 12:52 AM, Andreas Falkenhahn <email@hidden> wrote:
>
> I really can't use NSApplicationMain() because AFAICS it also expects
> to load a NIB file from the app bundle which simply doesn't exist for
> my app because I'm not using Xcode at all and everything is set up
> programmatically.
Even your main menu bar?
The main nib need only contain the very barest minimum, for example the skeleton of the main menu bar. It doesn’t need to have a window (and indeed for document-based apps typically does not).
So even if you *must* have a nib (which isn’t proven one way or the other), the nib can be minimal.
—Graham
_______________________________________________
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