• 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: NSURL produces spinning beach ball - how to get rid?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL produces spinning beach ball - how to get rid?


  • Subject: Re: NSURL produces spinning beach ball - how to get rid?
  • From: Dave Fayram <email@hidden>
  • Date: Sun, 9 Sep 2001 22:26:41 -0700

Put the fetch in a different thread (see NSThread).
Then have that thread call the action methods when it's done.

Hope that helped.

On Sunday, September 9, 2001, at 09:24 PM, Yuhui wrote:

Hi

I have a portion of code that uses NSURL to get a HTML file, e.g.

data = [NSMutableString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.apple.com/";]];

where data is, sensibly enough, a NSMutableString.

However, this approach produces the spinning beach ball mouse cursor and the app seems to freeze up while retrieving the data. Is there a way to work around this freeze?

Thanks
Yuhui
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


--
Dave "Paradox" Fayram
"... Because the situation is not equal."
- Vash the Stampede


  • Follow-Ups:
    • Re: NSURL produces spinning beach ball - how to get rid?
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines [Fairly Long]
  • Previous by thread: NSURL produces spinning beach ball - how to get rid?
  • Next by thread: Re: NSURL produces spinning beach ball - how to get rid?
  • Index(es):
    • Date
    • Thread