FROM : Steven Kramer
DATE : Sat Apr 16 14:49:33 2005
Op 11-apr-05 om 20:46 heeft Luc Vandal het volgende geschreven:
> Hi,
>
> I have a modal window that displays another modal window:
>
> int returnCode;
> returnCode = [NSApp runModalForWindow:dlgBrowse];
> [dlgBrowse orderOut:self];
> [NSApp stopModal];
>
> The problem is that when I click on Ok or Cancel on the 2nd window
> (which was opened by the 1st modal window), stopModalWithCode will
> close both windows at the same time. So I tried this:
>
I think this is a known bug (well, I submitted a bug report but no
action). I had to do some weird workaround where I used a sheet for the
second dialog. Unsavoury but it worked for me.
Regards,
Steven Kramer
--
<email_removed>
http://sprintteam.com/
DATE : Sat Apr 16 14:49:33 2005
Op 11-apr-05 om 20:46 heeft Luc Vandal het volgende geschreven:
> Hi,
>
> I have a modal window that displays another modal window:
>
> int returnCode;
> returnCode = [NSApp runModalForWindow:dlgBrowse];
> [dlgBrowse orderOut:self];
> [NSApp stopModal];
>
> The problem is that when I click on Ok or Cancel on the 2nd window
> (which was opened by the 1st modal window), stopModalWithCode will
> close both windows at the same time. So I tried this:
>
I think this is a known bug (well, I submitted a bug report but no
action). I had to do some weird workaround where I used a sheet for the
second dialog. Unsavoury but it worked for me.
Regards,
Steven Kramer
--
<email_removed>
http://sprintteam.com/
| Related mails | Author | Date |
|---|---|---|
| Luc Vandal | Apr 11, 20:46 | |
| Steven Kramer | Apr 16, 14:49 | |
| Kyle Hammond | Apr 16, 17:58 | |
| Steven Kramer | Apr 17, 13:33 |






Cocoa mail archive

