• 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: cascading sheets and HIG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cascading sheets and HIG


  • Subject: Re: cascading sheets and HIG
  • From: Nicholas Riley <email@hidden>
  • Date: Fri, 24 Jan 2003 22:47:35 -0600
  • Mail-followup-to: Alex Rice <email@hidden>, email@hidden

On Fri, Jan 24, 2003 at 05:42:38PM -0700, Alex Rice wrote:
> The Cocoa docs say the correct way to handle "cascading" sheets is to
> present them one at a time, closing each one before opening the next.
> I'm in a situation where that would be a kind of a pain in the butt to
> implement. So I'm breaking that rule and just throwing up a bunch of
> sheets with NSBeginAlertSheet(). I'm catching notifications in my NSApp
> delegate, which queries my NSDocumentController, decides what document
> and window the notification belongs to, and sends the sheet to that
> window. One sheet per notification.
>
> I've noticed that for Document windows that get more than one sheet,
> only sometimes I see the behaviour where the Window dissapears after
> the last sheet is dismissed, or I can't quit out of the app, or the
> Document window is empty and white. I have a didEndSelector, but it's
> not doing anything. So is "cascading" sheets like this just an HIG
> issue or is there something worse going on here?

Yes, this is broken. Cocoa should really just prohibit it instead of
exhibiting flaky behavior.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >cascading sheets and HIG (From: Alex Rice <email@hidden>)

  • Prev by Date: Re: Sending Email with Attachments
  • Next by Date: Re: dateWithCalendarFormat: problem
  • Previous by thread: Re: cascading sheets and HIG
  • Next by thread: Re: cascading sheets and HIG
  • Index(es):
    • Date
    • Thread