Domanda

I have a main window where all the work is done. When i open the preference panel I would like to freeze the main windows as long as the preference panel is open. For example iTunes: as soon as i open the preferences i just can interact with preference panel and nothing else.

Is there an easy way to archive this behavior?

È stato utile?

Soluzione

Code:

[NSApp runModalForWindow:theWindow];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top