Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个模态窗口,一个在另一个之上。订购时最顶部的模态窗口,下面的窗口不采取行动。在顶部模态窗口排序后我应该做什么以使较低级别成为关键窗口并接受鼠标事件或任何其他操作。
这是下面的代码,用于从顶部模式窗口中订购
NSInteger result = [NSApp runModalForWindow:topWindow]; if (result){ //do some saving here } [runModalForWindow:topWindow nil];
问候,