• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSStream and NSRunModalForWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSStream and NSRunModalForWindow (From: Peter C <email@hidden>)
 >Re: NSStream and NSRunModalForWindow (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Linearly Scaling Text
  • Next by Date: Re: Recursive search for files
  • Previous by thread: Re: NSStream and NSRunModalForWindow
  • Next by thread: Usage: kAuthorizationEnvironmentIcon
  • Index(es):
    • Date
    • Thread