> I've poked around a bit on getting multiple windows working under the
> NSDoent architecture, and have chosen the multiple
> NSWindowControllers route.
> unfortunately, that didn't solve my initial problem, which is that i
> can't seem to get the window focus to change. I have a theory as to
> why, but am not certain. here's my setup:
> In my NSDoent subclass, I load and p a rather large file.
> While this is happening, I would like another window to pop up in
> front. This secondary window would show a progress bar with an
> NSTextView spitting out information as it's parsing. I've managed to
> get text spitting out fine, but my problem is that this subwindow
> doesn't seem to have 'focus' -- i.e., the little red,yellow, and green
> buttons in the upper left aren't on.
> One theory is that the actual code that does the parsing is inside the
> NSDoent subclass, whose main window is not the "loading" window.
> Here's a snippet called from the NSDoent subclass:
> [[self window] orderOut:self];
> [loadingWindow orderFront: self];
> [self repEverything];
> [loadingWindow orderOut:self];
> [[self window] orderFront: self];
> during 'repEverything', i call a method on loadingWindow which
> spits out text and does a [textView display] to update itself (being
> the subwindow).
> am i right in thinking that because the actual time-consuming process
> happens in code run by my NSDoent subclass, which owns the main
> window, the focus won't change to my desired "currently loading"