• 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
WebView blocks User Interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebView blocks User Interface


  • Subject: WebView blocks User Interface
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 05 Dec 2013 18:47:11 +0700

10.9.0. Given a search field, the user enters some chars, and a WebView is filled with all words containing these chars.

Works fine, but one problem:
When the user wants all words containing "no" but types a bit slowly, then this happens:

- actionMethodFromSearchField: sender
	receives "n"
	makes htmlContent for "n" (takes no time, but is about 2 million chars long)
	sends: [ webView loadHTMLString: htmlContent  baseURL: nil ];
	returns after some fraction of a second.
The user now has finally found the key labelled "O" and presses it, but it does not show in the SearchField. Instead the spinning beach ball appears.

After 50 seconds the WebView shows its content, the spinning beach ball disappears, the "o" finally appears in the SearchField and actionMethodFromSearchField is called again, this time with "no" and all is fine from here on.

How can I keep my user interface responsive?

Gerriet.


_______________________________________________

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


  • Follow-Ups:
    • Re: WebView blocks User Interface
      • From: Scott Ribe <email@hidden>
    • Re: WebView blocks User Interface
      • From: Jens Alfke <email@hidden>
    • Re: WebView blocks User Interface
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Autolayout Greedy Fill question
  • Next by Date: Re: WebView blocks User Interface
  • Previous by thread: Re: Autolayout Greedy Fill question
  • Next by thread: Re: WebView blocks User Interface
  • Index(es):
    • Date
    • Thread