FROM : Christopher Kempke
DATE : Sun May 04 01:08:57 2008
Thanks for the tip, but no go. It actually makes the behavior worse:
now the modal dialog is still drawn, but never becomes active (the
title bar never gets dark, and the previously visible (document)
window never deactivates, although the dialog is drawn on top), and
the default button doesn't even turn blue.
--Christopher Kempke
On May 3, 2008, at 3:10 PM, Nathan Kinsinger wrote:
> On May 3, 2008, at 3:42 PM, Christopher Kempke wrote:
>> Then I draw the window with:
>>
>> [iWindow makeKeyAndOrderFront:nil];
>>
>> And run it as a modal dialog with:
>>
>> [NSApp runModalForWindow:iWindow];
>
> The docs for runModalForWindow: explicitly say not to send
> makeKeyAndOrderFront: to the window. I'm guessing that the window is
> in the normal run loop and not the modal run loop.
> makeKeyAndOrderFront: will show the window and make it key.
>
> --Nathan
>
DATE : Sun May 04 01:08:57 2008
Thanks for the tip, but no go. It actually makes the behavior worse:
now the modal dialog is still drawn, but never becomes active (the
title bar never gets dark, and the previously visible (document)
window never deactivates, although the dialog is drawn on top), and
the default button doesn't even turn blue.
--Christopher Kempke
On May 3, 2008, at 3:10 PM, Nathan Kinsinger wrote:
> On May 3, 2008, at 3:42 PM, Christopher Kempke wrote:
>> Then I draw the window with:
>>
>> [iWindow makeKeyAndOrderFront:nil];
>>
>> And run it as a modal dialog with:
>>
>> [NSApp runModalForWindow:iWindow];
>
> The docs for runModalForWindow: explicitly say not to send
> makeKeyAndOrderFront: to the window. I'm guessing that the window is
> in the normal run loop and not the modal run loop.
> makeKeyAndOrderFront: will show the window and make it key.
>
> --Nathan
>
| Related mails | Author | Date |
|---|---|---|
| Christopher Kempke | May 3, 23:42 | |
| Nathan Kinsinger | May 4, 00:10 | |
| Michael Ash | May 4, 00:25 | |
| Christopher Kempke | May 4, 01:08 | |
| Kyle Sluder | May 4, 05:47 | |
| Christopher Kempke | May 4, 11:19 | |
| Mike Abdullah | May 4, 12:07 |






Cocoa mail archive

