WebView blocks User Interface

2013-12-05 Thread Gerriet M. Denkmann
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

Re: WebView blocks User Interface

2013-12-05 Thread Roland King
On 5 Dec, 2013, at 7:47 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 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

Re: WebView blocks User Interface

2013-12-05 Thread Gerriet M. Denkmann
On 5 Dec 2013, at 19:25, Roland King r...@rols.org wrote: On 5 Dec, 2013, at 7:47 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 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:

Re: WebView blocks User Interface

2013-12-05 Thread Roland King
On 5 Dec, 2013, at 8:34 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Don't send 2Mb of search results to your webview. Do you really need the case where you search for one character only? Don't send data until you have more than one and don't send obviously too much data to be

Re: WebView blocks User Interface

2013-12-05 Thread Gerriet M. Denkmann
On 5 Dec 2013, at 19:55, Roland King r...@rols.org wrote: On 5 Dec, 2013, at 8:34 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Don't send 2Mb of search results to your webview. Do you really need the case where you search for one character only? Don't send data until you have

Re: WebView blocks User Interface

2013-12-05 Thread Jens Alfke
On Dec 5, 2013, at 3:47 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: How can I keep my user interface responsive? You can have an explicit “Search” button, and wait till the button is pressed to initiate the search. Not all search UIs have to be search-as-you-type. Also, I agree with

Re: WebView blocks User Interface

2013-12-05 Thread Scott Ribe
On Dec 5, 2013, at 4:47 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 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

Re: WebView blocks User Interface

2013-12-05 Thread Gerriet M. Denkmann
On 5 Dec 2013, at 19:55, Roland King r...@rols.org wrote: And really .. 50 seconds to render 2Mb, sure you don't want to check that again? Really. But I just changed all non-european characters to German characters and the time changed from 53 sec to 1.2 seconds. Looks like CoreText

Re: WebView blocks User Interface

2013-12-05 Thread Scott Ribe
On Dec 5, 2013, at 11:09 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Really. But I just changed all non-european characters to German characters and the time changed from 53 sec to 1.2 seconds. Looks like CoreText does not like non-european characters very much. And that WebKit is

Re: WebView blocks User Interface

2013-12-05 Thread Gerriet M. Denkmann
On 6 Dec 2013, at 01:24, Scott Ribe scott_r...@elevated-dev.com wrote: On Dec 5, 2013, at 11:09 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Really. But I just changed all non-european characters to German characters and the time changed from 53 sec to 1.2 seconds. Looks like

Re: WebView blocks User Interface

2013-12-05 Thread Jeffrey Oleander
On 2013 Dec 05, at 08:15, Gerriet M. Denkmann wrote: On 5 Dec 2013, at 19:55, Roland King r...@rols.org wrote: On 5 Dec, 2013, at 8:34 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Don't send 2Mb of search results to your webview. Do you really need the case where you search for one

Re: WebView blocks User Interface

2013-12-05 Thread Gerriet M. Denkmann
On 6 Dec 2013, at 01:24, Scott Ribe scott_r...@elevated-dev.com wrote: On Dec 5, 2013, at 11:09 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Really. But I just changed all non-european characters to German characters and the time changed from 53 sec to 1.2 seconds. Looks like

wantsDefaultClipping set to NO

2013-12-05 Thread Leonardo
I have to draw a NSShadow out of my NSViews' bounds. So I overrided the wantsDefaultClipping methond returning NO. That works, but not yet so well as I epxected. For example, when I move the view and setNeedsDisplay:YES, the area outside the view get not refreshed. So I subclassed setNeedsDisplay

Re: wantsDefaultClipping set to NO

2013-12-05 Thread Kyle Sluder
On Thu, Dec 5, 2013, at 01:03 PM, Leonardo wrote: I have to draw a NSShadow out of my NSViews' bounds. So I overrided the wantsDefaultClipping methond returning NO. You can't do this. Drawing outside of your view's bounds isn't supported. (More specifically, you must not draw outside of the