Re: code behind NSRunAlertPanel

2009-04-21 Thread Jeremy W. Sherman
> > Incidentally I was mistakenly under the impression that -runModalForWindow: > was deprecated. > You were likely thinking of -[NSApplication runModalForWindow:relativeToWindow:], which has been superseded by -beginSheet:modalForWindow:…. -runModalForWindow: is used to display an application-moda

Re: code behind NSRunAlertPanel

2009-04-21 Thread Graham Cox
On 22/04/2009, at 9:22 AM, John Yeh wrote: Can someone please point me to the code sample or document? [NSApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo]; Does it for me... Incidentally I was mistakenly under the impression that - runModalForWindow: was

code behind NSRunAlertPanel

2009-04-21 Thread John Yeh
I want to know how NSRunAlertPanel is implemented assuming the code is also written in Cocoa. I am curious why NSRunAlertPanel is able to run on top of a modal dialog. Can someone please point me to the code sample or document? Thanks. -John ___ Cocoa-