<?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>以太之内 生存之上 &#187; objective-c</title> <atom:link href="http://ixhan.com/tag/objective-c/feed/" rel="self" type="application/rss+xml" /><link>http://ixhan.com</link> <description>Live in your world, get owned in mine</description> <lastBuildDate>Tue, 15 May 2012 04:08:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Apple 发疯了</title><link>http://ixhan.com/2010/04/apple-such-a-bitch/</link> <comments>http://ixhan.com/2010/04/apple-such-a-bitch/#comments</comments> <pubDate>Fri, 09 Apr 2010 02:26:39 +0000</pubDate> <dc:creator>xhan</dc:creator> <category><![CDATA[iOS]]></category> <category><![CDATA[apple]]></category> <category><![CDATA[Flash]]></category> <category><![CDATA[google]]></category> <category><![CDATA[objective-c]]></category> <category><![CDATA[os4]]></category> <category><![CDATA[unity]]></category> <guid
isPermaLink="false">http://ixhan.com/?p=297</guid> <description><![CDATA[<a
href="http://ixhan.com/2010/04/apple-such-a-bitch/" title="Apple 发疯了"></a>Apple 发布了 os4.0 新的Game Center -&#62; openFeint , Plus+ 等第三方平台怎么活下去。矛盾开始了 iAD -&#62; 公开指责 google ，又一个敌人 以及 3.3.1 3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. &#8230;<p
class="read-more"><a
href="http://ixhan.com/2010/04/apple-such-a-bitch/">Read more &#187;</a></p>]]></description> <content:encoded><![CDATA[<a
href="http://ixhan.com/2010/04/apple-such-a-bitch/" title="Apple 发疯了"></a><p>Apple 发布了 os4.0</p><p>新的Game Center -&gt; openFeint , Plus+ 等第三方平台怎么活下去。矛盾开始了</p><p>iAD -&gt; 公开指责 google ，又一个敌人</p><p>以及 3.3.1</p><blockquote><p>3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).</p></blockquote><p>这下 unity 和 即将来临的flash也被一棍打死了。</p><p><a
target="_blank" href="http://forum.unity3d.com/viewtopic.php?t=48795&amp;postdays=0&amp;postorder=asc&amp;start=0">unity3d 论坛火爆讨论</a></p><p>Adobe 目前在twitter上的声明 ：<a
target="_blank" href="http://twitter.com/Adobe" target="_blank">Adobe</a>We are looking into the new SDK language. We continue to develop Packager for iPhone OS which will debut in Flash <a
target="_blank" href="http://search.twitter.com/search?q=%23CS5" target="_blank">#CS5</a></p><p><a
target="_blank" href="http://www.cocos2d-iphone.org/archives/855">当然cocos2d 也赶紧来了个声明，哈哈不关我的事</a></p><h3  class="related_post_title">Related Posts</h3><ul
class="related_post"><li><a
href="http://ixhan.com/2009/11/shit-on-objc-object-manager/" title="栽大了之Objc过度释放对象">栽大了之Objc过度释放对象</a></li><li><a
href="http://ixhan.com/project/opensource-before-2010/" title="10年之前">10年之前</a></li><li><a
href="http://ixhan.com/2010/04/a-trick-of-webview-iphone/" title="WebView 小技巧">WebView 小技巧</a></li><li><a
href="http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/" title="Tutorial of  kissXML(iPhone)">Tutorial of  kissXML(iPhone)</a></li></ul>]]></content:encoded> <wfw:commentRss>http://ixhan.com/2010/04/apple-such-a-bitch/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>栽大了之Objc过度释放对象</title><link>http://ixhan.com/2009/11/shit-on-objc-object-manager/</link> <comments>http://ixhan.com/2009/11/shit-on-objc-object-manager/#comments</comments> <pubDate>Thu, 26 Nov 2009 09:37:28 +0000</pubDate> <dc:creator>xhan</dc:creator> <category><![CDATA[Coding]]></category> <category><![CDATA[iOS]]></category> <category><![CDATA[apple]]></category> <category><![CDATA[决定]]></category> <category><![CDATA[内存管理]]></category> <category><![CDATA[c]]></category> <category><![CDATA[objective-c]]></category> <guid
isPermaLink="false">http://ixhan.com/?p=196</guid> <description><![CDATA[<a
href="http://ixhan.com/2009/11/shit-on-objc-object-manager/" title="栽大了之Objc过度释放对象"></a>事情是这样的,4个月前我写了份实现类似下拉框选择操作的界面. 一个月前,发现了这个View 在dealloc 会crash掉. 多次调试无果,上 devForum.apple.com 询问也无人问津. 今天决定再次调试下,还是没找到哪里出问题. 最后决定求助 cocoachina 上的现场观众 最后开始一行一行的注释代码做终极调试. 离谱的事情发现了,只要我创建一个名为 mainText 的 UILabel ,在dealloc 中程序就会crash ,改成其他名字无事.难道是apple的bug? 新写了个view测试了,还是没问题. 接着接着就发现了在dealloc方法中: [mainText release] ,mainText = nil; // NSLog(@"release %@",bgView); [bgView release]; // NSLog(@"release %@",originView); [originView release]; // NSLog(@"release %@",labelArray); [labelArray &#8230;<p
class="read-more"><a
href="http://ixhan.com/2009/11/shit-on-objc-object-manager/">Read more &#187;</a></p>]]></description> <content:encoded><![CDATA[<a
href="http://ixhan.com/2009/11/shit-on-objc-object-manager/" title="栽大了之Objc过度释放对象"></a><p>事情是这样的,4个月前我写了份实现类似下拉框选择操作的界面.<br
/> 一个月前,发现了这个View 在dealloc 会crash掉.<br
/> 多次调试无果,上 devForum.apple.com 询问也无人问津.<br
/> 今天决定再次调试下,还是没找到哪里出问题.<br
/> 最后决定求助 cocoachina 上的现场观众<br
/> 最后开始一行一行的注释代码做终极调试.</p><p>离谱的事情发现了,只要我创建一个名为 mainText 的 UILabel ,在dealloc 中程序就会crash ,改成其他名字无事.难道是apple的bug? 新写了个view测试了,还是没问题.</p><p>接着接着就发现了在dealloc方法中:<br
/> <code> [mainText release] ,mainText = nil;<br
/> //	NSLog(@"release %@",bgView);<br
/> [bgView release];<br
/> //	NSLog(@"release %@",originView);<br
/> [originView release];<br
/> //	NSLog(@"release %@",labelArray);<br
/> [labelArray release];<br
/> //	NSLog(@"release %@",mainText);<br
/> [mainText release];<br
/> </code><br
/> 该死的,不知道当时那根神经错了,居然释放了两次,当然出错咯.问题也解决了.</p><p>所以在确认释放对象的情况下一定要写成:<br
/> [instance release],instance = nil ;</p><p>个人经验是,对于objective-c的内存管理都是得经过磨练才出来的,前期多犯错误是好事情.<br
/> 当然我认识一个朋友 ,他不释放任何对象,因为反正关闭iPhone后系统会处理的.这种觉悟不是大部分程序员有的,大家还是稳步前进咯.</p><h3  class="related_post_title">Related Posts</h3><ul
class="related_post"><li><a
href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li><li><a
href="http://ixhan.com/2010/04/apple-such-a-bitch/" title="Apple 发疯了">Apple 发疯了</a></li><li><a
href="http://ixhan.com/2009/12/dec-review/" title="12月串烧-年轻人就要飘逸">12月串烧-年轻人就要飘逸</a></li><li><a
href="http://ixhan.com/2009/11/things-ive-done-in-past-5-months/" title="Things I&#8217;ve done int past 5 months">Things I&#8217;ve done int past 5 months</a></li></ul>]]></content:encoded> <wfw:commentRss>http://ixhan.com/2009/11/shit-on-objc-object-manager/feed/</wfw:commentRss> <slash:comments>145</slash:comments> </item> <item><title>游戏开发牛书推荐</title><link>http://ixhan.com/2009/11/yoooo/</link> <comments>http://ixhan.com/2009/11/yoooo/#comments</comments> <pubDate>Tue, 24 Nov 2009 16:45:21 +0000</pubDate> <dc:creator>xhan</dc:creator> <category><![CDATA[Coding]]></category> <category><![CDATA[c]]></category> <category><![CDATA[game]]></category> <category><![CDATA[objective-c]]></category> <category><![CDATA[游戏开发]]></category> <guid
isPermaLink="false">http://ixhan.com/?p=194</guid> <description><![CDATA[<a
href="http://ixhan.com/2009/11/yoooo/" title="游戏开发牛书推荐"></a>在看一本叫 Programming Game AI By Examples 的书 （本来打算买实体书的，后来想想不能破例，还是down了本电子书 &#8220;） 看完第二章后彻底折服了 ，写的这么好的书真是不多见的 这才是真正的设计模式 ，寥寥几行代码就把整个世界给建模了 结构异常清晰，细节异常周到 堪称完美的作品 自己曾设计了不少不成型的东西，这次能见大师级别的代码确实收获颇多。 觉得一下子成长了不少。 而且最兴奋的是发现许多设计上的结构在许多地方都是雷同的 包括 Objective-c ，Box2d ，之前还一直觉得 box2d 使用起来还真是繁琐 创建一个对象还得先 ref 后才能创建 简单的说设计模式就是通过规范的设计和规范的代码（当然带来的结果是繁琐的代码会多了不少）带给清晰的结构和逻辑。在代码和功能越来越多时便显的尤其重要了。 在虚拟机里面把书上的例子全跑了一遍，决心花半年时间把所有东西消化，这些demo太吸引人了。 我的终极目标是做一个架构师，不只是用户，程序员也会使用我的产品。努力奋斗，会来的。：） 需要电子书的朋友网上自行搜索把，很多资源的，官网并提供源码和例程下载。 Related Posts经不住的似水流年StarCraft2 beta coming soon?永远的扫雷英雄(开源) 登场12月串烧-年轻人就要飘逸]]></description> <content:encoded><![CDATA[<a
href="http://ixhan.com/2009/11/yoooo/" title="游戏开发牛书推荐"></a><p>在看一本叫 Programming Game AI By Examples 的书<br
/> （本来打算买实体书的，后来想想不能破例，还是down了本电子书 &#8220;）<br
/> 看完第二章后彻底折服了 ，写的这么好的书真是不多见的<br
/> 这才是真正的设计模式 ，寥寥几行代码就把整个世界给建模了<br
/> 结构异常清晰，细节异常周到  堪称完美的作品<br
/> 自己曾设计了不少不成型的东西，这次能见大师级别的代码确实收获颇多。<br
/> 觉得一下子成长了不少。<br
/> 而且最兴奋的是发现许多设计上的结构在许多地方都是雷同的<br
/> 包括 Objective-c ，Box2d ，之前还一直觉得 box2d 使用起来还真是繁琐<br
/> 创建一个对象还得先 ref 后才能创建</p><p>简单的说设计模式就是通过规范的设计和规范的代码（当然带来的结果是繁琐的代码会多了不少）带给清晰的结构和逻辑。在代码和功能越来越多时便显的尤其重要了。</p><p>在虚拟机里面把书上的例子全跑了一遍，决心花半年时间把所有东西消化，这些demo太吸引人了。</p><p>我的终极目标是做一个架构师，不只是用户，程序员也会使用我的产品。努力奋斗，会来的。：）</p><p>需要电子书的朋友网上自行搜索把，很多资源的，官网并提供源码和例程下载。</p><h3  class="related_post_title">Related Posts</h3><ul
class="related_post"><li><a
href="http://ixhan.com/2010/03/%e7%bb%8f%e4%b8%8d%e4%bd%8f%e7%9a%84%e4%bc%bc%e6%b0%b4%e6%b5%81%e5%b9%b4/" title="经不住的似水流年">经不住的似水流年</a></li><li><a
href="http://ixhan.com/2010/02/starcraft2-beta-coming-soon/" title="StarCraft2 beta coming soon?">StarCraft2 beta coming soon?</a></li><li><a
href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li><li><a
href="http://ixhan.com/2009/12/dec-review/" title="12月串烧-年轻人就要飘逸">12月串烧-年轻人就要飘逸</a></li></ul>]]></content:encoded> <wfw:commentRss>http://ixhan.com/2009/11/yoooo/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
