Thanks for your help. I came up with a kludgey partial workaround, which I offer here in case it helps somebody else.
Instead of:
[window makeKeyAndOrderFront:self];
I coded:
NSTimer *stopModalTimer = [NSTimer scheduledTimerWithTimeInterval:.25 target:NSApp selector:@selector(stopModal) userInfo:nil repeats:NO];
[[NSRunLoop currentRunLoop] addTimer:stopModalTimer forMode:NSModalPanelRunLoopMode];
[NSApp runModalForWindow:window];
This displays the window then turns off modal mode. However, the window is not key until clicked on.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: