Re: cascading sheets and HIG
Re: cascading sheets and HIG
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.