Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Ben Kennedy via Cocoa-dev
> On 12 May 2021, at 11:17 am, Carl Hoefs via Cocoa-dev > wrote: > > I'd like to present an informational alert for n seconds then dismiss it > without user interaction. But I don't see any way to dismiss, terminate, > cancel, invalidate, etc. an NSAlert object. I recently did that exact th

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread James Walker via Cocoa-dev
On 5/12/21 11:17 AM, Carl Hoefs via Cocoa-dev wrote: I had thought it was possible on MacOS to run an NSAlert panel nonmodally... I'd like to present an informational alert for n seconds then dismiss it without user interaction. But I don't see any way to dismiss, terminate, cancel, invalidate

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Keary Suska via Cocoa-dev
I believe Apple uses NSPopOver for non-modal alerts and dialogs, which can automatically dismiss when the user clicks outside the popover. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 12, 2021, at 12:17 PM, Carl Hoefs via Cocoa-dev > wrote: > > I

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Jens Alfke via Cocoa-dev
> On May 12, 2021, at 11:17 AM, Carl Hoefs via Cocoa-dev > wrote: > > I had thought it was possible on MacOS to run an NSAlert panel nonmodally… Alerts are modal by definition, per the HIG (IIRC). If you want a non-modal panel, it wouldn't be an alert; you'd have to implement it yourself us

MacOS: nonmodal NSAlert panel

2021-05-12 Thread Carl Hoefs via Cocoa-dev
I had thought it was possible on MacOS to run an NSAlert panel nonmodally... I'd like to present an informational alert for n seconds then dismiss it without user interaction. But I don't see any way to dismiss, terminate, cancel, invalidate, etc. an NSAlert object. I know this is possible in i