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

2016-08-24 Thread corbin dunn
> On Aug 23, 2016, at 4:31 PM, dangerwillrobinsondan...@gmail.com wrote: > > > >> 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. Andreas

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

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

2016-08-22 Thread Graham Cox
> 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 set up the NSApp: There’s your problem. You’re

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

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 17:55 Ken Thomases wrote: >>> Is this in the same app from your other thread >>> where you're trying to shoehorn Cocoa into a C-based program? Can >>> you reproduce the problem in a new, standard Cocoa app project? >> Yup, see above ;) > This is ambiguous. Was the "yup" to my

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

2016-08-22 Thread Ken Thomases
On Aug 22, 2016, at 10:46 AM, Andreas Falkenhahn wrote: > > On 22.08.2016 at 17:30 Ken Thomases wrote: > >> On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn >> wrote: > >>> I've created an NSAlert dialog … > >>> it shows up correctly but

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

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 17:30 Ken Thomases wrote: > On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn > wrote: >> I've created an NSAlert dialog as described here: >>

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

2016-08-22 Thread Ken Thomases
On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn wrote: > > I've created an NSAlert dialog as described here: > https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Dialog/Tasks/UsingAlerts.html#//apple_ref/doc/uid/2871-129009-BCIFAAEJ > > > When I

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

2016-08-22 Thread じょいすじょん
> On 2016 Aug 22, at 23:04, Andreas Falkenhahn wrote: > > On 22.08.2016 at 15:49 dangerwillrobinsondan...@gmail.com wrote: > > >>> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn >>> wrote: > >>> Does anybody have an idea >>> what could

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

2016-08-22 Thread Steve Mills
On Aug 22, 2016, at 09:04 AM, Andreas Falkenhahn wrote: You really think I didn't Google before asking? I certainly did, but so far I haven't found anything that could help me here. If you have anything more than just a Google search for "NSAlert 10.6", please

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

2016-08-22 Thread Andreas Falkenhahn
On 22.08.2016 at 15:49 dangerwillrobinsondan...@gmail.com wrote: >> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn >> wrote: >> Does anybody have an idea >> what could cause this behaviour on 10.6 and how I can fix this? > http://bfy.tw/7Kcc > there is a great

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

2016-08-22 Thread dangerwillrobinsondanger
> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn > wrote: > > Does anybody have an idea > what could cause this behaviour on 10.6 and how I can fix this? http://bfy.tw/7Kcc there is a great resource here. ___ Cocoa-dev

NSAlert::runModal doesn't work on 10.6

2016-08-22 Thread Andreas Falkenhahn
I've created an NSAlert dialog as described here: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Dialog/Tasks/UsingAlerts.html#//apple_ref/doc/uid/2871-129009-BCIFAAEJ When I run it using [alert runModal]; it shows up correctly but pressing a button doesn't do