Re: NSURL produces spinning beach ball - how to get rid?
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