<?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>Tonny Xu</title>
	<atom:link href="http://www.totodotnet.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.totodotnet.net</link>
	<description>Life is like a box of chocolates...</description>
	<lastBuildDate>Thu, 31 May 2012 15:50:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.1</generator>
	<item>
		<title>Don&#8217;t miss these cool stuff in D10</title>
		<link>http://www.totodotnet.net/2012/06/01/dont-miss-these-cool-stuff-in-d10/</link>
					<comments>http://www.totodotnet.net/2012/06/01/dont-miss-these-cool-stuff-in-d10/#comments</comments>
		
		<dc:creator><![CDATA[tonny.xu]]></dc:creator>
		<pubDate>Thu, 31 May 2012 15:50:08 +0000</pubDate>
				<category><![CDATA[Social]]></category>
		<category><![CDATA[Something really cool!]]></category>
		<guid isPermaLink="false">http://www.totodotnet.net/?p=1037</guid>

					<description><![CDATA[Tim Cook talked about Apple See the video here: Tim Cook on Steve Jobs , Apple TV and Facebook: The D10 highlights Mary Meeker release Internet trends of 2012 See this 98 pages report: KPCB Internet Trends &#8211; 2012]]></description>
										<content:encoded><![CDATA[<h2>Tim Cook talked about Apple</h2>
<p>See the video here: <a href="http://allthingsd.com/20120529/tim-cook-video/">Tim Cook on Steve Jobs , Apple TV and Facebook: The D10 highlights</a></p>
<h2>Mary Meeker release Internet trends of 2012</h2>
<p>See this 98 pages report:</p>
<p><a title="View KPCB Internet Trends - 2012 on Scribd" href="http://www.scribd.com/doc/95295585" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">KPCB Internet Trends &#8211; 2012</a></p>
<p><iframe loading="lazy" class="scribd_iframe_embed" src="http://www.scribd.com/embeds/95295585/content?start_page=1&#038;view_mode=list" data-auto-height="true" data-aspect-ratio="" scrolling="no" id="doc_95925" width="100%" height="600" frameborder="0"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.totodotnet.net/2012/06/01/dont-miss-these-cool-stuff-in-d10/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>An excellent handbook: &#8220;Facebook for business&#8221; from Looops.net</title>
		<link>http://www.totodotnet.net/2012/05/23/an-excellent-handbook-facebook-for-business-from-looops-net/</link>
					<comments>http://www.totodotnet.net/2012/05/23/an-excellent-handbook-facebook-for-business-from-looops-net/#respond</comments>
		
		<dc:creator><![CDATA[tonny.xu]]></dc:creator>
		<pubDate>Wed, 23 May 2012 07:29:35 +0000</pubDate>
				<category><![CDATA[Social]]></category>
		<category><![CDATA[Something really cool!]]></category>
		<guid isPermaLink="false">http://www.totodotnet.net/?p=1032</guid>

					<description><![CDATA[Looops.net released an excellent facebook handbook for business. This is such a good handbook, I&#8217;d like to share this in my blog. The handbook was written in Japanese. Hope you can read it. Although it was written in September 2011, but it still has huge value for anyone who want to apply Facebook to their &#8230; <a href="http://www.totodotnet.net/2012/05/23/an-excellent-handbook-facebook-for-business-from-looops-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><a href="http://media.looops.net">Looops.net</a> released an excellent <a href="http://media.looops.net/slide_report/kato/2011/09/30/facebook_seminar_slideshar/">facebook handbook for business</a>. This is such a good handbook, I&#8217;d like to share this in my blog.</p>
<p>The handbook was written in Japanese. Hope you can read it.</p>
<p>Although it was written in September 2011, but it still has huge value for anyone who want to apply Facebook to their business.</p>
<p>Meanwhile, my colleague <a href="https://twitter.com/#!/yzw036">Yazawa Osamu</a> and his company <a href="https://www.facebook.com/socialand/timeline">Socialand</a> is also pioneer on helping business user to expand their business on Facebook.</p>
<h2>handbook on Slidershare</h2>
<div style="width:425px" id="__ss_8853639"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/naoto111/facebook-8853639" title="ã€å®Œå…¨ç‰ˆã€‘Facebookãƒ“ã‚¸ãƒã‚¹æ´»ç”¨ã‚»ãƒŸãƒŠãƒ¼è³‡æ–&#x2122;" target="_blank">ã€å®Œå…¨ç‰ˆã€‘Facebookãƒ“ã‚¸ãƒã‚¹æ´»ç”¨ã‚»ãƒŸãƒŠãƒ¼è³‡æ–<img src="https://s.w.org/images/core/emoji/13.1.0/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" /></a></strong> <iframe loading="lazy" src="http://www.slideshare.net/slideshow/embed_code/8853639" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> </p>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/naoto111" target="_blank">Naoto Kyo</a> </div>
</p></div>
]]></content:encoded>
					
					<wfw:commentRss>http://www.totodotnet.net/2012/05/23/an-excellent-handbook-facebook-for-business-from-looops-net/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WWDC2012 eve @Tokyo</title>
		<link>http://www.totodotnet.net/2012/05/22/wwdc2012-eve-tokyo/</link>
					<comments>http://www.totodotnet.net/2012/05/22/wwdc2012-eve-tokyo/#respond</comments>
		
		<dc:creator><![CDATA[tonny.xu]]></dc:creator>
		<pubDate>Tue, 22 May 2012 05:34:45 +0000</pubDate>
				<category><![CDATA[iPhone Dev]]></category>
		<category><![CDATA[Something really cool!]]></category>
		<guid isPermaLink="false">http://www.totodotnet.net/?p=1028</guid>

					<description><![CDATA[WWDC 2012 will be open within 3 weeks, I&#8217;d like to have a WWDC2012 eve party at my company Voyage Group. iOS developers who can go WWDC from Tokyo, if you have time on Friday, June 1st evening, please come! How to register Please visit: ATND and register yourself. Fee 2000Yen/person includes: * Free beer/Free &#8230; <a href="http://www.totodotnet.net/2012/05/22/wwdc2012-eve-tokyo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>WWDC 2012 will be open within 3 weeks, I&#8217;d like to have a WWDC2012 eve party at my company <a href="http://www.voyagegroup.com">Voyage Group</a>. iOS developers who can go WWDC from Tokyo, if you have time on Friday, June 1st evening, please come!</p>
<h2>How to register</h2>
<p>Please visit: <a href="http://atnd.org/events/29349">ATND</a> and register yourself.</p>
<h2>Fee</h2>
<p>2000Yen/person</p>
<p>includes:<br />
* Free beer/Free softdrink<br />
* Free Pizza/Sushi</p>
<h2>Date and time</h2>
<p>June 1st, 2012 7pm~10pm</p>
<h2>Place</h2>
<p>AJITO of Voyage Group<br />
ã€’150-0045 8F 8-16 Shinsen-cho Shibuya-ku, Tokyo</p>
<h2>Topics</h2>
<ul>
<li>Making new friends</li>
<li>Exchanging hotel/tour/visit information, etc.</li>
</ul>
<p>OK, let&#8217;s meet up on June 1st, at 7:00pm</p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.totodotnet.net/2012/05/22/wwdc2012-eve-tokyo/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>An object in Cocoa, but do not use `*`?</title>
		<link>http://www.totodotnet.net/2012/05/12/an-object-in-cocoa-but-do-not-use/</link>
					<comments>http://www.totodotnet.net/2012/05/12/an-object-in-cocoa-but-do-not-use/#respond</comments>
		
		<dc:creator><![CDATA[tonny.xu]]></dc:creator>
		<pubDate>Sat, 12 May 2012 02:30:59 +0000</pubDate>
				<category><![CDATA[iPhone Dev]]></category>
		<guid isPermaLink="false">http://www.totodotnet.net/?p=1008</guid>

					<description><![CDATA[via NedraI via CC License A funny question Here is the funny question: Is there any object in Cocoa/Objective-C that is a object but you do not use * to indicate it? Now, think a few seconds before you read on: is there any such kind of objects? NO? are you sure about that? The &#8230; <a href="http://www.totodotnet.net/2012/05/12/an-object-in-cocoa-but-do-not-use/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><img src="http://farm4.staticflickr.com/3616/3344103542_fac5eaaa2c.jpg" alt="Block" /></p>
<blockquote><p>
  via <a href="http://www.flickr.com/photos/nedrai/">NedraI</a> via CC License
</p></blockquote>
<h2>A funny question</h2>
<p>Here is the funny question:</p>
<blockquote><p>
  <strong>Is there any object in Cocoa/Objective-C that is a object but you do not use <code>*</code> to indicate it?</strong>
</p></blockquote>
<p>Now, think a few seconds before you read on: is there any such kind of objects?</p>
<p>NO? are you sure about that?</p>
<h2>The Answer</h2>
<p>The answer is <strong>YES</strong>! Yeah, there is a such kind of object in Cocoa/Objective-C.</p>
<p><strong>It is the Block object!</strong></p>
<h3>Why?</h3>
<p>Apple brought <code>Block</code>, a much more common name is <a href="http://en.wikipedia.org/wiki/Closure_(computer_science)">Closure</a>. As you can see from the wiki page, it is a <strong>non-standard extention to C/C++/Objective-C 2.0</strong></p>
<p>Because it is an extension not only to <strong>Objective-C</strong>, but also to <strong>C/C++</strong>, so it has some special treatment.</p>
<h4>Because Block has <code>^</code></h4>
<p>To indicate a piece of code as a Block(or a Closure), it <strong>DOES</strong> need something like a pointer, but not a normal pointer. It act as a function pointer, but much more powerful.</p>
<p>So Apple introduced <code>^</code> as a replacement of <code>*</code> to Block.</p>
<h3>In Objective-C <code>^ == *</code></h3>
<p>As we can see, <code>^</code> is also a <em>pointer</em>, so why do we need another <code>*</code> to pointer to a Block?</p>
<h3>Sample code</h3>
<h4>Use it as a method argument</h4>
<pre><code>typedef void (^MyBlock)(void);
- (void)doSomethingWith:(MyBlock)block;
</code></pre>
<h4>Use it as a property</h4>
<pre><code>typedef void (^YourBlock)(void);
@property (nonatomic, copy) YourBlock block;
</code></pre>
<h4>Use it as a function argument</h4>
<pre><code>typedef void (^HisBlock)(void);
void myfunction(HisBlock block);
</code></pre>
<p>Note that, <strong>none</strong> of above is using <code>*</code> to indicate a block, because the <code>typedef</code> has already indicated it is an object.</p>
<hr />
<p>Of course, don&#8217;t forget to follow me @<a href="http://www.twitter.com/TonnyXu">TonnyXu</a> and <a href="http://www.facebook.com/Xu.Tonny">Facebook</a></p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.totodotnet.net/2012/05/12/an-object-in-cocoa-but-do-not-use/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
