Re: Modal dialog over modal dialog in Cocoa
Re: Modal dialog over modal dialog in Cocoa
- Subject: Re: Modal dialog over modal dialog in Cocoa
- From: Graham Cox <email@hidden>
- Date: Wed, 22 Apr 2009 11:50:25 +1000
On 22/04/2009, at 8:37 AM, John Yeh wrote:
[NSApp runModalForWindow: [settingsController window]];
// Dialog is up here.
[NSApp endSheet: [settingsController window]];
I think endSheet: needs to balance one of the beginSheet: methods, and
conversely, runModalForWindow: needs to be balanced by a stopModal,
abortModal or stopModalWithCode: method.
Also, you can't have two sheets simultaneously attached to the same
window. If you close the first then open the second that's OK,
otherwise you have to make the second sheet run subsidiary to the
first sheet. Either way it's a horrible UI - why not just make one big
dialog with all the controls (maybe with a disclosure triangle for the
secondary settings).
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden