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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to