The drawer and sheets problem - Further information
The drawer and sheets problem - Further information
- Subject: The drawer and sheets problem - Further information
- From: Mike Abdullah <email@hidden>
- Date: Mon, 3 Apr 2006 19:59:42 +0100
In search of a solution, I have been playing with iCal (it seems to
be one of the best examples of using a drawer in an app from Apple).
What I find interesting is that the drawer behaviour with a sheet
present does not seem to be entirely uniform regardless of sheet!
For example, iCal offers a "Go To Date" sheet. Bring this up and
items in the drawer are disabled as you would expect. EXCEPT if you
double or triple click, then things behave normally!
However, iCal also offers a "Subscribe" sheet. During this double
clicking and triple clicking of the sheet have no effect, it is
entirely as expected.
One further anomaly though. With all the sheets, even if clicking is
disabled, the controls still respond to a "mouse over." This really
does seem more and more like a fundamental problem that Apple needs
to deal with.
My thoughts thus far are that the best implementation might be to
temporarily place an opaque view over of all of the drawer's contents
which stops any mouse clicks getting through. This could work
because all the controls in my app seem to handle their drawing
properly when the sheet appears, its just their response to mouse
events that is an issue. However, this seems a little messy to me,
so hopefully, someone has a better suggestion.
Mike.
On 3 Apr 2006, at 18:12PM, Mike Abdullah wrote:
I'm afraid I am suffering from the drawer and sheet "clashing"
problem. I've come across several cases in the archives, but
decent solutions. However, I am hoping that someone may be able to
help me find a decent solution.
So, basically, the problem is this; When one has a window with an
attached drawer, bringing up a sheet on the window will not
"disable" the drawer - the user can still operate its controls.
Now, as I see it, there are two solutions to this, either one can
close the drawer before displaying a sheet, or a method to disable
the drawer's contents whilst a sheet is visible is needed.
In my case, I would like to try and pursue the latter of the two -
disabling the table contents. So, I guess the real question is:
What does Cocoa do to a window to disable its contents when
displaying a sheet? And how can I recreate it in my drawer.
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden