Re: runModalForWindow allows window switching
Re: runModalForWindow allows window switching
- Subject: Re: runModalForWindow allows window switching
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 20 Sep 2002 12:05:51 +0100
On Friday, September 20, 2002, at 12:08 am, Matt Neuburg wrote:
When I call runModalForWindow to bring up an application-modal dialog,
it
works okay, but while the dialog is up, I'm able to switch between the
other windows in my app. This surprises me.
I can't bring those other windows to the front, and I can't click any
buttons in them, all of which is good; but my understanding of modality
is
that I shouldn't be able to manipulate them at all. That's not the
case. I
can move them around, I can change their layering order, I can close
them.
Is that a bug?
It is unless the other windows are subclasses set to return YES to
-worksWhenModal (such as font or color panels or similar). Apple's
understanding of modality is the same as yours: "to exclude all other
windows and panels from receiving events".
Whether it's an application bug or an API bug is another matter, of
course. -runModalForWindow: works as prescribed in my apps (still using
10.1).
-Jeremy
========================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.