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

Re: SetWindowModality Replacement


  • Subject: Re: SetWindowModality Replacement
  • From: "Dong Feng" <email@hidden>
  • Date: Fri, 9 Jan 2009 22:48:14 +0800

I think, for the modaless, you need simply invoke [NSWindow
makeKeyAndOrderFront:]. On Mac OS X, SystemModal and AppModal are the
same and it should work with runModalForWindow.

I'm not sure the behavior of kWindowModalityWindowModal.



2009/1/8 Russ <email@hidden>:
> 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
>
_______________________________________________

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

References: 
 >SetWindowModality Replacement (From: Russ <email@hidden>)

  • Prev by Date: Re: Best way to handle this
  • Next by Date: QCView to fullscreen
  • Previous by thread: SetWindowModality Replacement
  • Next by thread: Quartz Composer For Games?
  • Index(es):
    • Date
    • Thread