Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-14 Thread Sean McBride
On 5/14/09 8:12 AM, Keary Suska said: >> Your advice is good, to be sure, but you are incorrect about the >> above. > >> In fact, the 'do you want to replace?' question is displayed in a >> sheet > >> that appears on top of the save panel sheet. > > >Yes, but the docs are clear that stacked or nes

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-14 Thread Keary Suska
On May 13, 2009, at 9:07 PM, Michael Ash wrote: 3) Use performSelector:withObject:afterDelay: with a 0 delay to run the code to show the new sheet after the old sheet has truly gone away. This will result in one sheet being followed by another sheet as you desire. I have had success with succe

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-14 Thread Michael Ash
On Thu, May 14, 2009 at 12:27 AM, Sean McBride wrote: > Michael Ash (michael@gmail.com) on 2009-05-13 11:07 PM said: > >>2) Display the second window as a modal panel instead of a sheet. >>Apple does this with NSSavePanel if you try to save over an existing >>file. It's easy and works well, bu

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-13 Thread Sean McBride
Michael Ash (michael@gmail.com) on 2009-05-13 11:07 PM said: >2) Display the second window as a modal panel instead of a sheet. >Apple does this with NSSavePanel if you try to save over an existing >file. It's easy and works well, but of course the modal panel blocks >your entire application w

Re: Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-13 Thread Michael Ash
On Wed, May 13, 2009 at 9:10 AM, Dennis Christopher wrote: > On this subject, I am having difficulty putting up a second modal sheet > (alert) for the same window. I call beginSheetModalForWindow in the didEnd > selector of the first alert, if you follow my meaning. It seems I get some > kind of u

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-13 Thread Mike Abdullah
Christopher On May 12, 2009, at 1:01 PM, cocoa-dev-requ...@lists.apple.com wrote: Message: 15 Date: Tue, 12 May 2009 09:49:46 -0700 From: Greg Guerin Subject: Re: Special requirements for the window param of NSAlert beginSheetModalForWindow? To: list-cocoa-dev Message-ID: <5e266eae-2

Re: Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-13 Thread Dennis Christopher
: Message: 15 Date: Tue, 12 May 2009 09:49:46 -0700 From: Greg Guerin Subject: Re: Special requirements for the window param of NSAlert beginSheetModalForWindow? To: list-cocoa-dev Message-ID: <5e266eae-26d7-4ae5-a268-601980ed1...@amug.org> Content-Type: text/plain; charset=US-ASCII; del

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-12 Thread Sean McBride
On 5/12/09 9:49 AM, Greg Guerin said: >> I ask because sometimes the alert is not displayed as a sheet on that >> window but instead it's floating on its own, attached to no other >> window. > >I have seen this "detached sheet" behavior when the parent window >already had a sheet open. Make sure t

Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-12 Thread Greg Guerin
Sean McBride wrote: I ask because sometimes the alert is not displayed as a sheet on that window but instead it's floating on its own, attached to no other window. I have seen this "detached sheet" behavior when the parent window already had a sheet open. Make sure there's not already ano

Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-12 Thread Sean McBride
Hi all, I have an NSAlert that I want to display as a sheet. I call: [alert beginSheetModalForWindow:window modalDelegate:nil didEndSelector:nil contextInfo:NULL]; the 'window' param is non-nil. Are there special requirements for this window? Must it be frontmost? Key? The docs don't s