SetWindowModality Replacement
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