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 :
> I'm still looking for a Cocoa replacement
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 dia