<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for iCab Blog</title>
	<atom:link href="http://www.icab.de/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icab.de/blog</link>
	<description>iCab related stuff; Mac, iPhone and Cocoa programming</description>
	<lastBuildDate>Fri, 03 Feb 2012 21:00:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alexander</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20719</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Fri, 03 Feb 2012 21:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20719</guid>
		<description>It looks like the UC Browser only uses the standard contextual menu of UIWebView, and this does always work, even with cross-domain iframes. But it only has the items &quot;Copy &quot; and &quot;Open&quot;.</description>
		<content:encoded><![CDATA[<p>It looks like the UC Browser only uses the standard contextual menu of UIWebView, and this does always work, even with cross-domain iframes. But it only has the items &#8220;Copy &#8221; and &#8220;Open&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alex</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20707</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 03 Feb 2012 11:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20707</guid>
		<description>@Alexander
Did you hear about UC Web Browse? A Chinese company&#039;s product, it can show the context menu when you long press at the cross-domain-iframe area. I don&#039;t know how they do that. They announce that they has their own web-engine base on webkit, and the html5test shows that UC&#039;s scores is different from the safari mobile. But I&#039;m not sure if they REALLY use their own engine.</description>
		<content:encoded><![CDATA[<p>@Alexander<br />
Did you hear about UC Web Browse? A Chinese company&#8217;s product, it can show the context menu when you long press at the cross-domain-iframe area. I don&#8217;t know how they do that. They announce that they has their own web-engine base on webkit, and the html5test shows that UC&#8217;s scores is different from the safari mobile. But I&#8217;m not sure if they REALLY use their own engine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alexander</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20706</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Fri, 03 Feb 2012 11:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20706</guid>
		<description>@Alex
No, Apple does not allow other web engines. You have to use the one that is built.in in the iOS.</description>
		<content:encoded><![CDATA[<p>@Alex<br />
No, Apple does not allow other web engines. You have to use the one that is built.in in the iOS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by coder</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20695</link>
		<dc:creator>coder</dc:creator>
		<pubDate>Fri, 03 Feb 2012 04:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20695</guid>
		<description>Thanks Alexander, I considered your solution but thought could be time consuming for large html files in fact what I did is I stored the set of words to be searched for in an array and as I go over the nodes recursively I check the words in the array consecutively if one fails I restore the index to start the search for the words all over again, if all the nodes verify the words consecutively so its a match. The hard part was to delete the words and replace them highlighted ones but at the end it worked.
Thank you very much for your solution it also inspired me for other functions.</description>
		<content:encoded><![CDATA[<p>Thanks Alexander, I considered your solution but thought could be time consuming for large html files in fact what I did is I stored the set of words to be searched for in an array and as I go over the nodes recursively I check the words in the array consecutively if one fails I restore the index to start the search for the words all over again, if all the nodes verify the words consecutively so its a match. The hard part was to delete the words and replace them highlighted ones but at the end it worked.<br />
Thank you very much for your solution it also inspired me for other functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alex</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20682</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 03 Feb 2012 00:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20682</guid>
		<description>Thanks Alexander, does Apple allow apps to build their own webkit themself?</description>
		<content:encoded><![CDATA[<p>Thanks Alexander, does Apple allow apps to build their own webkit themself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alexander</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20662</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Thu, 02 Feb 2012 13:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20662</guid>
		<description>@Alex
Yes, for different domains, there&#039;s no solution. In this case you can&#039;t do anything,</description>
		<content:encoded><![CDATA[<p>@Alex<br />
Yes, for different domains, there&#8217;s no solution. In this case you can&#8217;t do anything,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alex</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20656</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 02 Feb 2012 11:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20656</guid>
		<description>Thanks Alexander.
yeah,  I did it as you said, but it doesn&#039;t work in this situation: the main page and the iFrame/Frame page are from different domain.
I try to find some cross-domain solution, but i get nothing.
it seems need to call the private APIs of webkit. but Apple not allow to do this.
It made me mad!</description>
		<content:encoded><![CDATA[<p>Thanks Alexander.<br />
yeah,  I did it as you said, but it doesn&#8217;t work in this situation: the main page and the iFrame/Frame page are from different domain.<br />
I try to find some cross-domain solution, but i get nothing.<br />
it seems need to call the private APIs of webkit. but Apple not allow to do this.<br />
It made me mad!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alexander</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20629</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Wed, 01 Feb 2012 12:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20629</guid>
		<description>@Alex
Search frames is done in the same way as searching the main document. You only need to iterate through all of the frames and search here in the same way. frames are also &quot;window&quot; objects in JavaScript. And the &quot;document&quot; property that is used in my code directly is just a short form for &quot;window.document&quot;, so you can use this document for frame objects as well.
To get the frames of a window (or frame) use the &quot;frames&quot; property of this window object (window.frames). This property is an array and lists all frames of that window/frame.</description>
		<content:encoded><![CDATA[<p>@Alex<br />
Search frames is done in the same way as searching the main document. You only need to iterate through all of the frames and search here in the same way. frames are also &#8220;window&#8221; objects in JavaScript. And the &#8220;document&#8221; property that is used in my code directly is just a short form for &#8220;window.document&#8221;, so you can use this document for frame objects as well.<br />
To get the frames of a window (or frame) use the &#8220;frames&#8221; property of this window object (window.frames). This property is an array and lists all frames of that window/frame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alexander</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20628</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Wed, 01 Feb 2012 12:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20628</guid>
		<description>@coder
Searching will be more difficult in this case. You need to keep track of partly found search terms and check if adjacent text nodes contain the other parts of the search term. There are multiple ways to implement this. None is really simple. One simple approach might be to first combine all texts in all nodes into a single string, and also create a list or array of nodes and offsets which will tell you where within this string the nodes of the HTML string are starting and ending. This way the searching is easy, because you only have one single string. and getting to the actual nodes is also not that complicated anymore.</description>
		<content:encoded><![CDATA[<p>@coder<br />
Searching will be more difficult in this case. You need to keep track of partly found search terms and check if adjacent text nodes contain the other parts of the search term. There are multiple ways to implement this. None is really simple. One simple approach might be to first combine all texts in all nodes into a single string, and also create a list or array of nodes and offsets which will tell you where within this string the nodes of the HTML string are starting and ending. This way the searching is easy, because you only have one single string. and getting to the actual nodes is also not that complicated anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WebKit on the iPhone (Part 2) by Alexandr</title>
		<link>http://www.icab.de/blog/2009/08/05/webkit-on-the-iphone-part-2/comment-page-2/#comment-20627</link>
		<dc:creator>Alexandr</dc:creator>
		<pubDate>Wed, 01 Feb 2012 12:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=21#comment-20627</guid>
		<description>Hello. I wind trick for find window by &#039;name&#039;. It need for frames too.

&quot;try { if(eval(&#039;window.&#039;+&#039;winName&#039;+&#039;.document&#039;)) { alert(&#039;YES&#039;); } } catch(e) { alert(&#039;NO&#039;); }&quot;</description>
		<content:encoded><![CDATA[<p>Hello. I wind trick for find window by &#8216;name&#8217;. It need for frames too.</p>
<p>&#8220;try { if(eval(&#8216;window.&#8217;+'winName&#8217;+&#8217;.document&#8217;)) { alert(&#8216;YES&#8217;); } } catch(e) { alert(&#8216;NO&#8217;); }&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by Alex</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20619</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 01 Feb 2012 07:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20619</guid>
		<description>Hi, Alexander,
I got a problem, how to search the text in iFrame/Frameset? 
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, Alexander,<br />
I got a problem, how to search the text in iFrame/Frameset?<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Search and highlight text in UIWebView by coder</title>
		<link>http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/comment-page-5/#comment-20590</link>
		<dc:creator>coder</dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=110#comment-20590</guid>
		<description>Hy again! Old problem solved and another problem occured. If the nodes in my html file are made of one word each, how can modify the search so I can search for several words together.
thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hy again! Old problem solved and another problem occured. If the nodes in my html file are made of one word each, how can modify the search so I can search for several words together.<br />
thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on elementFromPoint() under iOS 5 by Benny</title>
		<link>http://www.icab.de/blog/2011/10/17/elementfrompoint-under-ios-5/comment-page-1/#comment-20585</link>
		<dc:creator>Benny</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=214#comment-20585</guid>
		<description>Thanks.
That is a good and clear explanation.</description>
		<content:encoded><![CDATA[<p>Thanks.<br />
That is a good and clear explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scaling images and creating thumbnails from UIViews by Alexander</title>
		<link>http://www.icab.de/blog/2010/10/01/scaling-images-and-creating-thumbnails-from-uiviews/comment-page-1/#comment-20443</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Thu, 26 Jan 2012 15:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=174#comment-20443</guid>
		<description>@nemo
There&#039;s definitely no 22MB limit for iOS Apps. iOS Apps can get much more memory, if available.

But please note that the main memory of an iOS device will be shared by all running Apps, background tasks and the iOS itself. And there&#039;s no such thing as a swap file, like on normal computers, where the disk space can be used to get more memory.

And there&#039;s never something like  &quot;nothing is running&quot;. The iOS is always running, so the system is always  using memory for screen buffers, background tasks like the audio player, network stuff, many system tasks etc. 

On devices with only 256 MB or even only 128 MB (the very first iPhone and iPod Touch models), your App might only have 22 MB memory left for your Apps data, all the rest can be used by the iOS and the application code of the App itself. 

But because of the serious memory limits, you have to be very careful with your own memory management. Make sure that you release the memory you don&#039;t need anymore as early as possible, especially if you might need a lot of temporary memory while processing data in a loop.</description>
		<content:encoded><![CDATA[<p>@nemo<br />
There&#8217;s definitely no 22MB limit for iOS Apps. iOS Apps can get much more memory, if available.</p>
<p>But please note that the main memory of an iOS device will be shared by all running Apps, background tasks and the iOS itself. And there&#8217;s no such thing as a swap file, like on normal computers, where the disk space can be used to get more memory.</p>
<p>And there&#8217;s never something like  &#8220;nothing is running&#8221;. The iOS is always running, so the system is always  using memory for screen buffers, background tasks like the audio player, network stuff, many system tasks etc. </p>
<p>On devices with only 256 MB or even only 128 MB (the very first iPhone and iPod Touch models), your App might only have 22 MB memory left for your Apps data, all the rest can be used by the iOS and the application code of the App itself. </p>
<p>But because of the serious memory limits, you have to be very careful with your own memory management. Make sure that you release the memory you don&#8217;t need anymore as early as possible, especially if you might need a lot of temporary memory while processing data in a loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scaling images and creating thumbnails from UIViews by nemo</title>
		<link>http://www.icab.de/blog/2010/10/01/scaling-images-and-creating-thumbnails-from-uiviews/comment-page-1/#comment-20441</link>
		<dc:creator>nemo</dc:creator>
		<pubDate>Thu, 26 Jan 2012 14:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=174#comment-20441</guid>
		<description>&quot;This is not a big deal for the iPhone 4 which has much more main memory (512 MB) than all other devices.&quot;

Are you sure?  I have just got bit by a 22MB limit for running app within iOS.
When this limit is reached, iOS just kills the app if it won&#039;t release mem.
And I got e.g. iPad2 with 256MB with nothing else running on it so there&#039;s lot&#039;s of free mem...
Of course it is not officially documented, just try it :)
Another &#039;feature&#039; from Apple...</description>
		<content:encoded><![CDATA[<p>&#8220;This is not a big deal for the iPhone 4 which has much more main memory (512 MB) than all other devices.&#8221;</p>
<p>Are you sure?  I have just got bit by a 22MB limit for running app within iOS.<br />
When this limit is reached, iOS just kills the app if it won&#8217;t release mem.<br />
And I got e.g. iPad2 with 256MB with nothing else running on it so there&#8217;s lot&#8217;s of free mem&#8230;<br />
Of course it is not officially documented, just try it <img src='http://www.icab.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Another &#8216;feature&#8217; from Apple&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

