Re: Sheets on sheets?
Re: Sheets on sheets?
- Subject: Re: Sheets on sheets?
- From: Brian Webster <email@hidden>
- Date: Tue, 19 Jun 2001 15:57:58 -0500
On Tuesday, June 19, 2001, at 03:07 PM, cocoa-dev-
email@hidden wrote:
Is it OK to begin a doc-modal sheet on top of another doc-modal sheet?
In particular, does open / save support this?
The scenerio:
doc window is open
bring up a "doc settings" sheet modal for the document
bring up an "open" sheet model for the document on top of the
"doc settings" sheet.
It doesn't seem to work very well, but before I kill myself trying to
debug it, it occurred to me that I can't think of an example of this in
OS X. (Admittedly, I don't many OS X apps to look at.) Am I violating
the HI?
This does seem like a pretty funky way to use sheets. I tried a
small test case on it just now, and it does work, but is
obviously not designed to do so and has lots of bugs. For one
thing, clicks on the second sheet go right through to the first
sheet, and the second sheet doesn't move around with the window,
so I guess the answer to your first question is "no". I would
either just use a plain modal dialog for the open panel, or
maybe retract the doc settings sheet while displaying the open
dialog sheet, and then put it back when the open dialog sheet
has finished.
--
Brian Webster
email@hidden
http://www.owlnet.rice.edu/~bwebster