Re: modal over modal problem
Re: modal over modal problem
- Subject: Re: modal over modal problem
- From: Steven Kramer <email@hidden>
- Date: Sat, 16 Apr 2005 14:49:33 +0200
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@hidden
http://sprintteam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden