• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Modal dialog over modal dialog in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Modal dialog over modal dialog in Cocoa (From: John Yeh <email@hidden>)

  • Prev by Date: Re: iphone SDK session duration
  • Next by Date: Re: code behind NSRunAlertPanel
  • Previous by thread: Modal dialog over modal dialog in Cocoa
  • Next by thread: Re: Modal dialog over modal dialog in Cocoa
  • Index(es):
    • Date
    • Thread