• 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
SetWindowModality Replacement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SetWindowModality Replacement


  • Subject: SetWindowModality Replacement
  • From: Russ <email@hidden>
  • Date: Wed, 7 Jan 2009 09:35:26 -0800 (PST)

I'm still looking for a Cocoa replacement for SetWindowModality --- need to be able to change a dialog window modeless or modal for good reasons (this is a big tricky app, not a toy text editor).

I tried calling [NSApp run] as a nested run loop to turn modeless, but NSApp stop:0 killed the dialog box's modal loop (runModalForWindow) as well.

I am thinking of skipping the runModalForWindow altogether for dialog boxes, and implementing my own event filtering that I can turn off and on as needed. It seems I should be able to do the filtering very easily based on each event's window, anything else needed?

Other kludge would be to destroy the dialog box outright and recreate it with the alternative mode to switch modes.

Suggestions welcome.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SetWindowModality Replacement
      • From: "Dong Feng" <email@hidden>
  • Prev by Date: Re: QTMovieLayer and QCCompositionLayer Don't Start
  • Next by Date: Re: Asyncronous message handling
  • Previous by thread: Re: Works in main Thread, but not in background Thread (modified)
  • Next by thread: Re: SetWindowModality Replacement
  • Index(es):
    • Date
    • Thread