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 <matchmo...@yahoo.com>:
> 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 (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/middle.fengdong%40gmail.com
>
> This email sent to middle.fengd...@gmail.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to