• 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: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet


  • Subject: Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
  • From: Seth Willits <email@hidden>
  • Date: Fri, 18 Jan 2008 11:06:23 -0800

On Jan 17, 2008, at 9:56 AM, Jonathan Dann wrote:

...but the HIG say that you shouldn't (and Cocoa can't) stack a sheet on a sheet.

Unfortunately Cocoa can..... http://www.sethwillits.com/temp/LeopardSheetBug.mov

(I'm not sure whyyyy it does it here, but it does.)



So I need to order out the initial sheet and present the error alert (e.g. that directory wasn't write-able) as another sheet, then bring my original sheet back.

The problem is, I've factored out all the code that managed and instantiates the sheet into a NSWindowController subclass, as per the advice on Wil Shipley's blog.

Why is that a problem?



Its easy enough to just disable the button that ends the sheet, but I want to tell the user that they did wrong on the document they are working on without running an application-modal alert when it really is a document-modal error.

If you have room, maybe you could stick an error message in the first sheet somewhere.




--
Seth Willits




_______________________________________________

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


  • Follow-Ups:
    • Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
      • From: John Stiles <email@hidden>
References: 
 >Starting an alert sheet from an NSWindowController that owns a user-editable sheet (From: Jonathan Dann <email@hidden>)

  • Prev by Date: Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
  • Next by Date: Re: Reading a string from a socket
  • Previous by thread: Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
  • Next by thread: Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
  • Index(es):
    • Date
    • Thread