• 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: runModalForWindow allows window switching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: runModalForWindow allows window switching
      • From: Jeremy Dronfield <email@hidden>
References: 
 >runModalForWindow allows window switching (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: searching a Unicode string in a text
  • Next by Date: Re: NSTextStorage setAttributedString problems
  • Previous by thread: runModalForWindow allows window switching
  • Next by thread: Re: runModalForWindow allows window switching
  • Index(es):
    • Date
    • Thread