I replaced NSDefaultRunLoopMode with NSModalPanelRunLoopMode, it is running
fine now. Open another modal window won't stop network process.
Thanks Graham.
On 24 May 2011, at 8:12 PM, Graham Cox wrote:
>
> On 24/05/2011, at 8:03 PM, Peter C wrote:
>
>> [iStream scheduleInRunLoop:[NSRunLoop cu
On 24/05/2011, at 8:03 PM, Peter C wrote:
> [iStream scheduleInRunLoop:[NSRunLoop currentRunLoop]
> forMode:NSDefaultRunLoopMode];
At a guess I'd say you need to set the runloop mode to something else, such as
NSRunLoopCommonModes or NSModalPanelRunLoopMode. Check out the NSRunLo
I have a window sending data via NSStream to another app. Whenever I invoke
another modal window, the data stops. Somehow NSStream is block by
NSRunModalForWindow. The code is pretty standard, a snippet of the code,
[NSStream getStreamsToHost:host port:portNumber