Re: NSStream and NSRunModalForWindow
Re: NSStream and NSRunModalForWindow
- Subject: Re: NSStream and NSRunModalForWindow
- From: Peter C <email@hidden>
- Date: Thu, 26 May 2011 08:53:56 +0800
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 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 NSRunLoop documentation for what these mean.
>
>
>
> --Graham
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden