Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread dangerwillrobinsondanger
> On Aug 24, 2016, at 2:56 AM, Andreas Falkenhahn > wrote: > > Is that your personal opinion or is this documented anywhere? There's not anything to the contrary I've seen. Look no further than LSUIElement. There is an info plist key that says you have no UI, and

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread Graham Cox
> On 24 Aug 2016, at 12:52 AM, Andreas Falkenhahn > 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

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread Andreas Falkenhahn
On 23.08.2016 at 19:30 dangerwillrobinsondan...@gmail.com wrote: > You don't have to have a nib unless your plist says you will. Is that your personal opinion or is this documented anywhere? Apple's documentation of NSApplicationMain() clearly states that this function "loads the main nib file

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread dangerwillrobinsondanger
It may load it any way. You don't have to have a nib unless your plist says you will. Sent from my iPhone > On Aug 24, 2016, at 12:45 AM, Scott Ribe wrote: > >> On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn >> wrote: >> >> I really

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread Andreas Falkenhahn
On 23.08.2016 at 17:45 Scott Ribe wrote: > On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn > wrote: >> I really can't use NSApplicationMain() because AFAICS it also expects >> to load a NIB file from the app bundle > The nib to load at startup is specified in the

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread Scott Ribe
On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn wrote: > > I really can't use NSApplicationMain() because AFAICS it also expects > to load a NIB file from the app bundle The nib to load at startup is specified in the plist, I bet if you leave that entry out, it won't

Re: NSAlert::runModal doesn't work on 10.6

2016-08-23 Thread Andreas Falkenhahn
On 23.08.2016 at 01:17 Graham Cox wrote: >> On 23 Aug 2016, at 1:46 AM, Andreas Falkenhahn >> wrote: >> It is unusual in the way that it's not calling NSApplicationMain() but tries >> to imitate what NSApplicationMain() does. Here goes the code that is executed >> to