<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vincent Demay Blog</title>
	<atom:link href="http://blog.demay-fr.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.demay-fr.net</link>
	<description>Un blog utilisant WordPress</description>
	<lastBuildDate>Wed, 19 May 2010 17:36:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to add a lot of files to svn in one shot</title>
		<link>http://blog.demay-fr.net/2010/05/how-to-add-a-lot-of-file-to-svn-in-one-shot/</link>
		<comments>http://blog.demay-fr.net/2010/05/how-to-add-a-lot-of-file-to-svn-in-one-shot/#comments</comments>
		<pubDate>Wed, 19 May 2010 17:36:22 +0000</pubDate>
		<dc:creator>Vincent Demay</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=159</guid>
		<description><![CDATA[When your svn status gives you a lot of files to add it is quite painful to add them one by one. 
Here is a command to add all new file in one shot :

svn status &#124; grep '?' &#124; sed 's/\?       //' &#124; xargs svn add

]]></description>
			<content:encoded><![CDATA[<p>When your <code>svn status</code> gives you a lot of files to add it is quite painful to add them one by one. <br/><br />
Here is a command to add all new file in one shot :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> status <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'?'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/\?       //'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> add</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2010/05/how-to-add-a-lot-of-file-to-svn-in-one-shot/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HTML 5 sample</title>
		<link>http://blog.demay-fr.net/2010/04/html-5-sample/</link>
		<comments>http://blog.demay-fr.net/2010/04/html-5-sample/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 08:31:18 +0000</pubDate>
		<dc:creator>Vincent Demay</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=146</guid>
		<description><![CDATA[Here is a very cool demo of what HTML 5 can do : 

http://apirocks.com/html5/html5.html#slide1
Via Sylvain
]]></description>
			<content:encoded><![CDATA[<p>Here is a very cool demo of what HTML 5 can do : </p>
<p><img src="http://blog.demay-fr.net/wp-content/uploads/2010/04/html5.png" alt="" title="html5" width="500" height="298" class="aligncenter size-full wp-image-147" /><br />
<br/><a target="_blank" href="http://apirocks.com/html5/html5.html#slide1">http://apirocks.com/html5/html5.html#slide1</a></p>
<p>Via <a target="_blank" href="http://bluxte.net">Sylvain</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2010/04/html-5-sample/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I lost MY SERVER</title>
		<link>http://blog.demay-fr.net/2010/04/i-lost-my-server/</link>
		<comments>http://blog.demay-fr.net/2010/04/i-lost-my-server/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 20:12:27 +0000</pubDate>
		<dc:creator>Vincent Demay</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=136</guid>
		<description><![CDATA[Hi there, Yesterday my server crashed&#8230; oops what a bad news.
After lot of work to make all this f***g stuff to work again, the result is all this strange, &#60;hug!&#62; awfull design in all my blogs. I guess I can fix all that as soon as possible and make things better than they are today.
Stay [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there, Yesterday my server crashed&#8230; oops what a bad news.</p>
<p>After lot of work to make all this f***g stuff to work again, the result is all this strange, &lt;hug!&gt; awfull design in all my blogs. I guess I can fix all that as soon as possible and make things better than they are today.</p>
<p>Stay tuned for more details</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2010/04/i-lost-my-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new blog about Iphone development</title>
		<link>http://blog.demay-fr.net/2010/01/a-new-blog-about-iphone-development/</link>
		<comments>http://blog.demay-fr.net/2010/01/a-new-blog-about-iphone-development/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 14:40:37 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=81</guid>
		<description><![CDATA[Hi there. I post more and more about development on iphone so I created a blog for that. In This blog I will reference

all Iphone API I find
Some tips about Iphone
Some development I make

 Have a look at it here : http://iphone.demay-fr.net  I&#8217;ll continue to populate this blog with other topics Cheers 
]]></description>
			<content:encoded><![CDATA[<p>Hi there. I post more and more about development on iphone so I created a blog for that. In This blog I will reference
<ul>
<li>all Iphone API I find</li>
<li>Some tips about Iphone</li>
<li>Some development I make</li>
</ul>
<p> Have a look at it here : <a href="http://iphone.demay-fr.net" hreflang="en">http://iphone.demay-fr.net</a> <br/><br/> I&#8217;ll continue to populate this blog with other topics Cheers </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2010/01/a-new-blog-about-iphone-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eGalax and drag on Ubuntu</title>
		<link>http://blog.demay-fr.net/2010/01/egalax-and-drag-on-ubuntu/</link>
		<comments>http://blog.demay-fr.net/2010/01/egalax-and-drag-on-ubuntu/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 23:33:48 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=60</guid>
		<description><![CDATA[By default an eGalax touchscreen works fine with a Ubuntu. Fine but not perfectly&#8230; because drag is not detected.
After a couple of minute searching on the Internet, I found it is a bug and a known bug (link).
so here is the procedure to fix it on ubuntu Karmic
First of all check your device :

cat /proc/bus/input/devices
I: [...]]]></description>
			<content:encoded><![CDATA[<p>By default an eGalax touchscreen works fine with a Ubuntu. Fine but not perfectly&#8230; because drag is not detected.</p>
<p>After a couple of minute searching on the Internet, I found it is a bug and a known bug (<a hreflang="en" href="sudo dpkg -i ../xserver-xorg-input-evtouch_0.8.8-0ubuntu3_i386.deb">link</a>).</p>
<p>so here is the procedure to fix it on ubuntu <em>Karmic</em></p>
<p>First of all check your device :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>input<span style="color: #000000; font-weight: bold;">/</span>devices
I: <span style="color: #007800;">Bus</span>=0003 <span style="color: #007800;">Vendor</span>=0eef <span style="color: #007800;">Product</span>=0001 <span style="color: #007800;">Version</span>=0100
N: <span style="color: #007800;">Name</span>=<span style="color: #ff0000;">&quot;eGalax Inc. USB TouchController&quot;</span>
P: <span style="color: #007800;">Phys</span>=usb-0000:00:1d.0-<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>input0
S: <span style="color: #007800;">Sysfs</span>=<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>pci0000:00<span style="color: #000000; font-weight: bold;">/</span>0000:00:1d.0<span style="color: #000000; font-weight: bold;">/</span>usb2<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span>-<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span>-<span style="color: #000000;">1</span>:<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>input<span style="color: #000000; font-weight: bold;">/</span>input5
U: <span style="color: #007800;">Uniq</span>= H: <span style="color: #007800;">Handlers</span>=mouse2 event5 B: <span style="color: #007800;">EV</span>=b B: <span style="color: #007800;">KEY</span>=<span style="color: #000000;">400</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> B: <span style="color: #007800;">ABS</span>=<span style="color: #000000;">3</span></pre></div></div>

<p>Then patch evtouch and rebuild it :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> build-dep xserver-xorg-input-evtouch
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #7a0874; font-weight: bold;">source</span> xserver-xorg-input-evtouch
<span style="color: #7a0874; font-weight: bold;">cd</span> xf86-input-evtouch-0.8.7<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> debian<span style="color: #000000; font-weight: bold;">/</span>patches<span style="color: #000000; font-weight: bold;">/</span>02-buttonless-device.patch
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-O</span> debian<span style="color: #000000; font-weight: bold;">/</span>patches<span style="color: #000000; font-weight: bold;">/</span>02-buttonless-device.patch http:<span style="color: #000000; font-weight: bold;">//</span>launchpadlibrarian.net<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">26529094</span><span style="color: #000000; font-weight: bold;">/</span>02-buttonless-device.patch <span style="color: #7a0874; font-weight: bold;">echo</span> 02-buttonless-device.patch <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; debian<span style="color: #000000; font-weight: bold;">/</span>patches<span style="color: #000000; font-weight: bold;">/</span>series dpkg-buildpackage
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> ..<span style="color: #000000; font-weight: bold;">/</span>xserver-xorg-input-evtouch_0.8.8-0ubuntu3_i386.deb</pre></div></div>

<p>This procedure works perfectly for me and make <a hreflang="en" href="http://enna.geexbox.org/">Enna</a> sexier <img src='http://blog.demay-fr.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2010/01/egalax-and-drag-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Is your compagny product as good as &#8230;.</title>
		<link>http://blog.demay-fr.net/2009/08/is-your-compagny-product-as-good-as/</link>
		<comments>http://blog.demay-fr.net/2009/08/is-your-compagny-product-as-good-as/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 10:33:01 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=108</guid>
		<description><![CDATA[    no coments&#8230;.
]]></description>
			<content:encoded><![CDATA[<p><img src="/images/googleproduct.jpg" alt="" /> <br/> <br/> <br/> no coments&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2009/08/is-your-compagny-product-as-good-as/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Cocoa] How to add a toolbar with button on top of a UITextView in order to add a dismiss button</title>
		<link>http://blog.demay-fr.net/2009/07/cocoa-how-to-add-a-toolbar-with-button-on-top-of-a-uitextview-in-order-to-add-a-dismiss-button/</link>
		<comments>http://blog.demay-fr.net/2009/07/cocoa-how-to-add-a-toolbar-with-button-on-top-of-a-uitextview-in-order-to-add-a-dismiss-button/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 15:25:39 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=130</guid>
		<description><![CDATA[The big problem with UITextView is there isn&#8217;t any native way to hide the keyboard once the input ended.
The following code describes a DissmisableTextView. This view extends UITextView adding on top of the keyboard associated with this UITextView a toolbar with a &#171;&#160;Done&#160;&#187; Button :

Here is the code :

//
//  DismissableTextView.h
//
//  A textView allowing [...]]]></description>
			<content:encoded><![CDATA[<p>The big problem with UITextView is there isn&#8217;t any native way to hide the keyboard once the input ended.<br />
The following code describes a DissmisableTextView. This view extends UITextView adding on top of the keyboard associated with this UITextView a toolbar with a &laquo;&nbsp;Done&nbsp;&raquo; Button :<br />
<img src="/images/Image 5.png" alt="" /></p>
<p>Here is the code :</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">//</span>
<span style="color: #11740a; font-style: italic;">//  DismissableTextView.h</span>
<span style="color: #11740a; font-style: italic;">//</span>
<span style="color: #11740a; font-style: italic;">//  A textView allowing to dismiss keyboard with a toolbar and a</span>
<span style="color: #11740a; font-style: italic;">//  Done button on top of the keyboard</span>
<span style="color: #11740a; font-style: italic;">//</span>
<span style="color: #11740a; font-style: italic;">//  Created by Vincent Demay on 02/07/09.</span>
<span style="color: #11740a; font-style: italic;">//</span>
&nbsp;
<span style="color: #a61390;">@interface</span> DismissableTextView <span style="color: #002200;">:</span> UITextView <span style="color: #002200;">&#123;</span>
  UIToolbar<span style="color: #002200;">*</span> keyboardToolbar;
<span style="color: #002200;">&#125;</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> keyboardWillShow<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #400080;">NSNotification</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>note;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> dismissKeyboard; 
&nbsp;
<span style="color: #a61390;">@end</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">//</span>
<span style="color: #11740a; font-style: italic;">//  DismissableTextView.m</span>
<span style="color: #11740a; font-style: italic;">//</span>
<span style="color: #11740a; font-style: italic;">//  Created by Vincent Demay on 02/07/09. /</span>
<span style="color: #11740a; font-style: italic;">// #import &quot;DismissableTextView.h&quot; </span>
&nbsp;
<span style="color: #a61390;">@implementation</span> DismissableTextView 
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>initWithFrame<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CGRect<span style="color: #002200;">&#41;</span>frame <span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>self <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>super initWithFrame<span style="color: #002200;">:</span>frame<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
         <span style="color: #11740a; font-style: italic;">//register a specific method on keyboard appearence</span>
         <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSNotificationCenter</span> defaultCenter<span style="color: #002200;">&#93;</span> addObserver<span style="color: #002200;">:</span>self selector<span style="color: #002200;">:</span><span style="color: #a61390;">@selector</span><span style="color: #002200;">&#40;</span>keyboardWillShow<span style="color: #002200;">:</span><span style="color: #002200;">&#41;</span> name<span style="color: #002200;">:</span>UIKeyboardWillShowNotification object<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#125;</span>
    <span style="color: #a61390;">return</span> self;
<span style="color: #002200;">&#125;</span> 
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>keyboardWillShow<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #400080;">NSNotification</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>notification <span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">for</span> <span style="color: #002200;">&#40;</span>UIWindow <span style="color: #002200;">*</span>keyboardWindow <span style="color: #a61390;">in</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIApplication sharedApplication<span style="color: #002200;">&#93;</span> windows<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
         <span style="color: #11740a; font-style: italic;">// Now iterating over each subview of the available windows</span>
         <span style="color: #a61390;">for</span> <span style="color: #002200;">&#40;</span>UIView <span style="color: #002200;">*</span>keyboard <span style="color: #a61390;">in</span> <span style="color: #002200;">&#91;</span>keyboardWindow subviews<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
             <span style="color: #11740a; font-style: italic;">// Check to see if the description of the view we have referenced is UIKeyboard.</span>
             <span style="color: #11740a; font-style: italic;">// If so then we found the keyboard view that we were looking for.</span>
             <span style="color: #a61390;">if</span><span style="color: #002200;">&#40;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>keyboard description<span style="color: #002200;">&#93;</span> hasPrefix<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;&amp;lt;UIKeyboard&quot;</span><span style="color: #002200;">&#93;</span> <span style="color: #002200;">==</span> <span style="color: #a61390;">YES</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
                  <span style="color: #400080;">NSValue</span> <span style="color: #002200;">*</span>v <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>notification userInfo<span style="color: #002200;">&#93;</span> valueForKey<span style="color: #002200;">:</span>UIKeyboardBoundsUserInfoKey<span style="color: #002200;">&#93;</span>;
		  CGRect kbBounds <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>v CGRectValue<span style="color: #002200;">&#93;</span>;
                  <span style="color: #a61390;">if</span><span style="color: #002200;">&#40;</span>keyboardToolbar <span style="color: #002200;">==</span> <span style="color: #a61390;">nil</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
                      keyboardToolbar <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIToolbar alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span>CGRectZero<span style="color: #002200;">&#93;</span>;
       		      keyboardToolbar.barStyle <span style="color: #002200;">=</span> UIBarStyleBlackTranslucent;
		      UIBarButtonItem <span style="color: #002200;">*</span>barButtonItem <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIBarButtonItem alloc<span style="color: #002200;">&#93;</span> initWithTitle<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Done&quot;</span> style<span style="color: #002200;">:</span>UIBarButtonItemStyleBordered target<span style="color: #002200;">:</span>self action<span style="color: #002200;">:</span><span style="color: #a61390;">@selector</span><span style="color: #002200;">&#40;</span>dismissKeyboard<span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
		      UIBarButtonItem <span style="color: #002200;">*</span>flex <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIBarButtonItem alloc<span style="color: #002200;">&#93;</span> initWithBarButtonSystemItem<span style="color: #002200;">:</span>UIBarButtonSystemItemFlexibleSpace target<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span> action<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
		      <span style="color: #400080;">NSArray</span> <span style="color: #002200;">*</span>items <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSArray</span> alloc<span style="color: #002200;">&#93;</span> initWithObjects<span style="color: #002200;">:</span>flex, barButtonItem, <span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
		      <span style="color: #002200;">&#91;</span>keyboardToolbar setItems<span style="color: #002200;">:</span>items<span style="color: #002200;">&#93;</span>;
		      <span style="color: #002200;">&#91;</span>items release<span style="color: #002200;">&#93;</span>;
                  <span style="color: #002200;">&#125;</span>
                  <span style="color: #002200;">&#91;</span>keyboardToolbar removeFromSuperview<span style="color: #002200;">&#93;</span>;
		  keyboardToolbar.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">0</span>, kbBounds.size.width, <span style="color: #2400d9;">30</span><span style="color: #002200;">&#41;</span>;
		  <span style="color: #002200;">&#91;</span>keyboard addSubview<span style="color: #002200;">:</span>keyboardToolbar<span style="color: #002200;">&#93;</span>;
		  keyboard.bounds <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span>kbBounds.origin.x, kbBounds.origin.y, kbBounds.size.width, kbBounds.size.height <span style="color: #002200;">+</span> <span style="color: #2400d9;">60</span><span style="color: #002200;">&#41;</span>;
                  <span style="color: #a61390;">for</span><span style="color: #002200;">&#40;</span>UIView<span style="color: #002200;">*</span> subKeyboard <span style="color: #a61390;">in</span> <span style="color: #002200;">&#91;</span>keyboard subviews<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
		      <span style="color: #a61390;">if</span><span style="color: #002200;">&#40;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>subKeyboard description<span style="color: #002200;">&#93;</span> hasPrefix<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;&amp;lt;UIKeyboardImpl&quot;</span><span style="color: #002200;">&#93;</span> <span style="color: #002200;">==</span> <span style="color: #a61390;">YES</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
                          subKeyboard.bounds <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span>kbBounds.origin.x, kbBounds.origin.y <span style="color: #002200;">-</span> <span style="color: #2400d9;">30</span>, kbBounds.size.width, kbBounds.size.height<span style="color: #002200;">&#41;</span>;
		      <span style="color: #002200;">&#125;</span>
                  <span style="color: #002200;">&#125;</span>
              <span style="color: #002200;">&#125;</span>
          <span style="color: #002200;">&#125;</span>
     <span style="color: #002200;">&#125;</span>
<span style="color: #002200;">&#125;</span> 
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> dismissKeyboard <span style="color: #002200;">&#123;</span>
    <span style="color: #002200;">&#91;</span>self resignFirstResponder<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span> 
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>dealloc <span style="color: #002200;">&#123;</span>
     <span style="color: #002200;">&#91;</span>super dealloc<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2009/07/cocoa-how-to-add-a-toolbar-with-button-on-top-of-a-uitextview-in-order-to-add-a-dismiss-button/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Cocoa : Who to handle MouveXXX events on UIWebView</title>
		<link>http://blog.demay-fr.net/2009/06/cocoa-who-to-handle-mouvexxx-events-on-uiwebview/</link>
		<comments>http://blog.demay-fr.net/2009/06/cocoa-who-to-handle-mouvexxx-events-on-uiwebview/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 14:13:16 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=129</guid>
		<description><![CDATA[Default behavior of the UIWebView is : eat touchXXX events and not send them to the nextResponder. One way to be able to catch this kind of event on a UIWebView is to add on top of it a UIView. But at this point, links, scroll, etc&#8230; are not capture to inner components of the [...]]]></description>
			<content:encoded><![CDATA[<p>Default behavior of the UIWebView is : eat touchXXX events and not send them to the nextResponder. One way to be able to catch this kind of event on a UIWebView is to add on top of it a UIView. But at this point, links, scroll, etc&#8230; are not capture to inner components of the under UIWebView. Here is a HACK to make this struff work : <code>
<pre> // //  TouchUIWebView.h // //  Created by Vincent Demay on 19/06/09. //  Copyright 2009 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @interface DummyTapView : UIView { 	UIView * uiScroller_; 	UIView * uiWebDocumentView_; } @property(nonatomic, retain) UIView *uiScroller; @property(nonatomic, retain) UIView *uiWebDocumentView; @end @interface TouchUIWebView : UIWebView { } @end </pre>
<p> </code><br />
<hr/> <code>
<pre> // //  TouchUIWebView.m // //  Created by Vincent Demay on 19/06/09. //  Copyright 2009 __MyCompanyName__. All rights reserved. // #import "TouchUIWebView.h" const char* kUIScrollerName = "UIScroller"; const char* kUIWebDocumentView= "UIWebDocumentView"; @implementation DummyTapView @synthesize uiScroller = uiScroller_; @synthesize uiWebDocumentView = uiWebDocumentView_; // // retreive the scroller view in uiwebView // used to compute scrolling in the loaded web page // - (UIView*) uiScroller { 	if( self.superview !=nil &#038;&#038; uiScroller_ == nil ) { 		NSArray *views = [self.superview subviews]; 		for( id view in views ) { 			const char* name = object_getClassName(view); 			if( !strncmp( name, kUIScrollerName, strlen(name) ) ) { 				uiScroller_ = view; 				return uiScroller_; 			} 		} 	} 	return uiScroller_; } // // retreive the document view in UiWebView // used to compute touch on link etc... // - (UIView*) uiWebDocumentView { 	if( self.superview != nil &#038;&#038; uiWebDocumentView_ == nil ) { 		NSArray *views = [self.uiScroller subviews]; 		for( id view in views ) { 			const char* name = object_getClassName(view); 			if( !strncmp( name, kUIWebDocumentView, strlen(name) ) ) { 				uiWebDocumentView_ = view; 				return uiWebDocumentView_; 			} 		} 	} 	return uiWebDocumentView_; } - (id) initWithFrame:(CGRect)frame { 	self = [super initWithFrame:frame]; 	self.backgroundColor = [UIColor clearColor]; 	return self; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { 	[self.uiScroller touchesBegan:touches withEvent:event]; 	[self.uiWebDocumentView touchesBegan:touches withEvent:event]; 	[self.nextResponder touchesBegan:touches withEvent:event]; } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { 	[self.uiScroller touchesMoved:touches withEvent:event]; 	[self.uiWebDocumentView touchesMoved:touches withEvent:event]; 	[self.nextResponder touchesMoved:touches withEvent:event]; } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { 	[self.uiScroller touchesEnded:touches withEvent:event]; 	[self.uiWebDocumentView touchesEnded:touches withEvent:event]; 	[self.superview didFinishGesturesInView:self.superview forEvent:event]; 	[self.nextResponder touchesEnded:touches withEvent:event]; } - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { 	[self.uiScroller touchesCancelled:touches withEvent:event]; 	[self.uiWebDocumentView touchesCancelled:touches withEvent:event]; 	[self.nextResponder touchesCancelled:touches withEvent:event]; } @end @implementation TouchUIWebView - (id)initWithFrame:(CGRect)frame {     if (self = [super initWithFrame:frame]) {         // Initialization code 		DummyTapView* view = [[DummyTapView alloc] 							  initWithFrame:CGRectMake( 0,0,self.frame.size.width,self.frame.size.height)]; 		[self addSubview:view]; 		[view release];     }     return self; } @end </pre>
<p> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2009/06/cocoa-who-to-handle-mouvexxx-events-on-uiwebview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loi Hadopi en France</title>
		<link>http://blog.demay-fr.net/2009/03/loi-hadopi-en-france/</link>
		<comments>http://blog.demay-fr.net/2009/03/loi-hadopi-en-france/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 17:28:45 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=25</guid>
		<description><![CDATA[«Bourbier juridique», «nuage de Tchernobyl», «pas raisonnable». Hier encore, la loi création et Internet (dite Hadopi) s’est fait tailler un joli costard. Repoussé par la loi sur l’hôpital, l’examen du projet devrait démarrer aujourd’hui à l’Assemblée nationale et, hormis une page de pub dans le Monde rassemblant les signatures de 10 000 artistes en faveur [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.liberation.fr/medias/0101553564-la-loi-hadopi-au-pilori">«Bourbier juridique», «nuage de Tchernobyl», «pas raisonnable». Hier encore, la loi création et Internet (dite Hadopi) s’est fait tailler un joli costard. Repoussé par la loi sur l’hôpital, l’examen du projet devrait démarrer aujourd’hui à l’Assemblée nationale et, hormis une page de pub dans le Monde rassemblant les signatures de 10 000 artistes en faveur du texte, le climat est hostile.[...] (Libération)</a> <br/> <br/> <a href="http://www.ca-va-couper.fr/"> <img alt="Bannière 1 du site Dédé Ca-va-couper.fr" src="http://www.ca-va-couper.fr/wp-content/uploads/2008/10/banniere-ca-va-couper-01.jpg" title="Bannière 1 du site Dédé Ca-va-couper.fr"/> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2009/03/loi-hadopi-en-france/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing / Reading files on native Iphone Application</title>
		<link>http://blog.demay-fr.net/2009/02/writing-reading-files-on-native-iphone-application/</link>
		<comments>http://blog.demay-fr.net/2009/02/writing-reading-files-on-native-iphone-application/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 16:53:14 +0000</pubDate>
		<dc:creator>doume</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://blog.demay-fr.net/?p=128</guid>
		<description><![CDATA[Here is a little sample to write/read files with objective c on native Iphone Application. This snippet write into the Document Directory of the application. We will see later problems when trying to write in the Resources folder   WRITE
 NSString *dataStr = @"my data"; //get Document Root NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little sample to write/read files with objective c on native Iphone Application.<br/> This snippet write into the Document Directory of the application. We will see later problems when trying to write in the<i> Resources</i> folder<br/> <br/> <br/> <b>WRITE</b>
<pre> NSString *dataStr = @"my data"; //get Document Root NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; //append file name to path NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"myFile"]; //prepar data in A NSData from a String NSData *aData = [dataStr dataUsingEncoding: NSUTF8StringEncoding]; //Write to the file. //File will be automacally created if not exist [aData writeToFile:filePath atomically:YES]; </pre>
<p> <br/> <br/> <b>READ</b>
<pre> //get Document root NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"myFile"]; NSString *myText = [NSString stringWithContentsOfFile:filePath]; if (myText) {     return myText; } else  {     //can not read because file does not exists     //make here your error handler } </pre>
<p> <br/> <br/> <br/> <br/> <b>WARNING : </b> It is possible to get a file from <i>Resources</i> Folder with the follwing line : <br/>
<pre> NSString *filePath = [[NSBundle mainBundle] pathForResource:fileName ofType:extension]; </pre>
<p> <br/> Be carreful with that  because if the file does not exist <i>filePath</i> will be null, so it will be impossible to create the file&#8230; difficult to write into the file :p</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.demay-fr.net/2009/02/writing-reading-files-on-native-iphone-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
