<?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>theboy的起居注</title>
	<atom:link href="http://qijuzhu.cn/feed/" rel="self" type="application/rss+xml" />
	<link>http://qijuzhu.cn</link>
	<description>我们的生活有这么多的障碍，真他妈的有意思，这种逻辑就叫做黑色幽默。</description>
	<lastBuildDate>Tue, 21 Sep 2010 07:57:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>泡在图书馆的幸福时光</title>
		<link>http://qijuzhu.cn/%e6%b3%a1%e5%9c%a8%e5%9b%be%e4%b9%a6%e9%a6%86%e7%9a%84%e5%b9%b8%e7%a6%8f%e6%97%b6%e5%85%89/</link>
		<comments>http://qijuzhu.cn/%e6%b3%a1%e5%9c%a8%e5%9b%be%e4%b9%a6%e9%a6%86%e7%9a%84%e5%b9%b8%e7%a6%8f%e6%97%b6%e5%85%89/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 07:51:35 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[suki]]></category>
		<category><![CDATA[图书馆]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1382</guid>
		<description><![CDATA[忙完今年第三次招聘，我终于可以稍稍放松一下自己。看了看日期，已经是9月9号，马上就是教师节，我想起了我大学图书馆的老师们。]]></description>
			<content:encoded><![CDATA[<p>忙完今年第三次招聘，我终于可以稍稍放松一下自己。看了看日期，已经是9月9号，马上就是教师节，我想起了我大学图书馆的老师们。<br />
我先给丘老师打电话，丘老师告诉我现在新图书馆已经启用，书也比以前多，学生们非常爱学习，也没人在里面帮忙。还说换了个副馆长，韩老师工作不很如意。我要了韩老师的电话，打通了，韩老师第一句就问我，成家了吗。我说没有呢。又问我现在谈对象了吗，我说也没有。韩老师说你也岁数不小了，该结婚了。我说我情况比较特殊，可能要30以后才能结婚。<br />
韩老师一口沧州话，问我还和<a href="http://qitiao.cn"target="_blank"title="suki" >suki</a>在一起吗，我说，没有，分开两年多了。韩老师就责怪我，说小丫头长得挺好的，人又厚道，怎么跟人家分了。我说明年我有可能要去<a href="http://qijuzhu.cn/russian-art-collectors/">美国</a>了，王顾左右而言他。<br />
我的大学基本上是在图书馆和网吧里面渡过的。在图书馆里我帮老师们找书，空闲的时候我就去看计算机方面的书，然后就去网吧实践。那时候真是年轻，可以连续几天晚上通宵，现在如果一晚上不睡觉第二天就回脑袋涨痛，如同孙猴子被念了紧箍咒。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;忧伤的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>我突然失去勇气回忆，走在陌生的城市，看着熟悉的人，我发现，狼狈比失去更难受。</p>
<p>未完不续。</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/%e6%b3%a1%e5%9c%a8%e5%9b%be%e4%b9%a6%e9%a6%86%e7%9a%84%e5%b9%b8%e7%a6%8f%e6%97%b6%e5%85%89/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Objective-C 2.0学习笔记之NSMutableDictionary</title>
		<link>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutabledictionary/</link>
		<comments>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutabledictionary/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 10:37:17 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1378</guid>
		<description><![CDATA[?View Code C&#160; #import &#60;Foundation/Foundation.h&#62; &#160; int main &#40;int argc, const char * argv&#91;&#93;&#41; &#123; NSAutoreleasePool * pool = &#91;&#91;NSAutoreleasePool alloc&#93; init&#93;; NSMutableDictionary *rows=&#91;NSMutableDictionary dictionary&#93;;//建立一个空字典 &#91;rows setObject:@&#34;I'm duoduoluo&#34; forKey:@&#34;duoduoluo&#34;&#93;;//增加键与值 &#91;rows setObject:@&#34;I'm theboy&#34; forKey:@&#34;theboy&#34;&#93;; NSLog&#40;@&#34;%@&#34;,&#91;rows objectForKey:@&#34;duoduoluo&#34;&#93;&#41;;//输出 &#160; &#160; NSMutableDictionary *glossarr=&#91;NSMutableDictionary dictionaryWithObjectsAndKeys: @&#34;I'm duoduoluo&#34;, @&#34;duoduoluo&#34;, @&#34;I'm theboy&#34;, @&#34;theboy&#34;, nil &#93;; for&#40;NSString *key in glossarr&#41;//快速枚举 &#123; NSLog&#40;@&#34;%@&#34;,&#91;glossarr objectForKey:key&#93;&#41;; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1378code2'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13782"><td class="code" id="p1378code2"><pre class="c" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">#import &lt;Foundation/Foundation.h&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> main <span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">const</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span> argv<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   NSAutoreleasePool <span style="color: #339933;">*</span> pool <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span>NSAutoreleasePool alloc<span style="color: #009900;">&#93;</span> init<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	NSMutableDictionary <span style="color: #339933;">*</span>rows<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>NSMutableDictionary dictionary<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//建立一个空字典</span>
	<span style="color: #009900;">&#91;</span>rows setObject<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;I'm duoduoluo&quot;</span> forKey<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;duoduoluo&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//增加键与值</span>
	<span style="color: #009900;">&#91;</span>rows setObject<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;I'm theboy&quot;</span> forKey<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;theboy&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	NSLog<span style="color: #009900;">&#40;</span>@<span style="color: #ff0000;">&quot;%@&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span>rows objectForKey<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;duoduoluo&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//输出</span>
&nbsp;
&nbsp;
	NSMutableDictionary <span style="color: #339933;">*</span>glossarr<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>NSMutableDictionary  dictionaryWithObjectsAndKeys<span style="color: #339933;">:</span>
	@<span style="color: #ff0000;">&quot;I'm duoduoluo&quot;</span><span style="color: #339933;">,</span>
	@<span style="color: #ff0000;">&quot;duoduoluo&quot;</span><span style="color: #339933;">,</span>
	@<span style="color: #ff0000;">&quot;I'm theboy&quot;</span><span style="color: #339933;">,</span>
	@<span style="color: #ff0000;">&quot;theboy&quot;</span><span style="color: #339933;">,</span>
	nil
	<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span>NSString <span style="color: #339933;">*</span>key in glossarr<span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">//快速枚举</span>
	<span style="color: #009900;">&#123;</span>
		NSLog<span style="color: #009900;">&#40;</span>@<span style="color: #ff0000;">&quot;%@&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span>glossarr objectForKey<span style="color: #339933;">:</span>key<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#91;</span>pool drain<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>输出:</p>
<p>[Session started at 2010-08-21 18:33:12 +0800.]<br />
2010-08-21 18:33:13.036 nsstring[195:903] I&#8217;m duoduoluo<br />
2010-08-21 18:33:13.041 nsstring[195:903] I&#8217;m duoduoluo<br />
2010-08-21 18:33:13.041 nsstring[195:903] I&#8217;m theboy</p>
<p>The Debugger has exited with status 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutabledictionary/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Objective-C 2.0学习笔记之NSMutableArray</title>
		<link>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutablearray/</link>
		<comments>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutablearray/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 08:25:51 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1376</guid>
		<description><![CDATA[?View Code C#import &#60;Foundation/Foundation.h&#62; &#160; int main &#40;int argc, const char * argv&#91;&#93;&#41; &#123; NSAutoreleasePool * pool = &#91;&#91;NSAutoreleasePool alloc&#93; init&#93;; int i; NSArray *row=&#91;NSArray arrayWithObjects:@&#34;duoduoluo&#34;,@&#34;theboy&#34;,@&#34;longmao&#34;,nil&#93;; NSMutableArray *array;//定义一个可变数组 array=&#91;NSMutableArray arrayWithCapacity:3&#93;;//定义数组长度 &#91;array addObjectsFromArray:row&#93;;//增加 &#91;array removeObjectAtIndex:1&#93;;//删除 for&#40;i=0;i&#60;&#91;array count&#93;;i++&#41; &#123; NSLog&#40;@&#34;%@&#34;,&#91;array objectAtIndex:i&#93;&#41;; &#125; &#91;pool drain&#93;; return 0; &#125; output: [Session started at 2010-08-21 16:20:58 +0800.] 2010-08-21 16:20:58.395 nsstring[688:903] [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1376code4'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13764"><td class="code" id="p1376code4"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#import &lt;Foundation/Foundation.h&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> main <span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">const</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span> argv<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   NSAutoreleasePool <span style="color: #339933;">*</span> pool <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span>NSAutoreleasePool alloc<span style="color: #009900;">&#93;</span> init<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #993333;">int</span> i<span style="color: #339933;">;</span>
	NSArray <span style="color: #339933;">*</span>row<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>NSArray arrayWithObjects<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;duoduoluo&quot;</span><span style="color: #339933;">,</span>@<span style="color: #ff0000;">&quot;theboy&quot;</span><span style="color: #339933;">,</span>@<span style="color: #ff0000;">&quot;longmao&quot;</span><span style="color: #339933;">,</span>nil<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	NSMutableArray <span style="color: #339933;">*</span>array<span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//定义一个可变数组</span>
	array<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>NSMutableArray arrayWithCapacity<span style="color: #339933;">:</span><span style="color: #0000dd;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//定义数组长度</span>
	<span style="color: #009900;">&#91;</span>array addObjectsFromArray<span style="color: #339933;">:</span>row<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//增加</span>
	<span style="color: #009900;">&#91;</span>array removeObjectAtIndex<span style="color: #339933;">:</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//删除</span>
	<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span><span style="color: #009900;">&#91;</span>array count<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		NSLog<span style="color: #009900;">&#40;</span>@<span style="color: #ff0000;">&quot;%@&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span>array objectAtIndex<span style="color: #339933;">:</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#91;</span>pool drain<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>output:</p>
<p>[Session started at 2010-08-21 16:20:58 +0800.]<br />
2010-08-21 16:20:58.395 nsstring[688:903] duoduoluo<br />
2010-08-21 16:20:58.400 nsstring[688:903] longmao</p>
<p>The Debugger has exited with status 0.</p>
<p>NSArray:(immutable)</p>
<p>   在创建的时候,就包含了所有对象.你不能增加或是删除其中任何一个对象.这种特定称为: immutable.</p>
<p>   1.  &#8211; (unsigned)count 得到array中的对象个数.</p>
<p>   2.  -(id)objectAtIndex:(unsigned)i 得到索引为i的对象.如果i值超过了array对象数量,在程序运行到这里会产生错误.</p>
<p>   3.  -(id)lastObject 得到最后一个对象.如果NSArray中没有任何对象存在,返回nil.</p>
<p>   4.  -(BOOL)containsObject:(id)anObject 当anObject出现在NSArray中,则返回YES.</p>
<p>   5.  -(unsigned)indexOfObject:(id)anObject查找NSArray中是否存在anObject, 并返回最小的索引值.</p>
<p>NSMutableArray:</p>
<p>    NSMutableArray继承NSArray,扩展了增加,删除对象的功能. 可以使用NSArray的mutableCopy方法来复制得到一个可修改的NSMutableArray对象.</p>
<p>    1.  &#8211; (void)addObject:(id)anObject 在reciever最后添加anObject. 添加nil是非法的.</p>
<p>    2.  &#8211; (void)addObjectsFromArray:(NSArray *)otherArray 在reciever最后,把otherArray中的对象都依次添加进去.</p>
<p>    3.  &#8211; (void)insertObject:(id)anObject atIndex:(unsigned)index 在索引index处插入对象anObject. 如果index被占用,会把之后的object向后<a href="http://yuansui.com/"target="_blank"title="中国移动网上营业厅" >移动</a>. index不能大于所包含对象个数,并且anObject不能为空.</p>
<p>    4.  &#8211; (void)removeAllObjects 清空array.</p>
<p>    5.  &#8211; (void)removeObject:(id)anObject 删除所有和anObject相等的对象.</p>
<p>    6.  &#8211; (void)removeObjectAtIndex:(unsigned)index 删除索引为index的对象.后面的对象依次往前移.如果index越界,将会产生错误.</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutablearray/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Objective-C 2.0学习笔记之NSMutableString</title>
		<link>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutablestring/</link>
		<comments>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutablestring/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 09:31:18 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Objective-C 2.0]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1374</guid>
		<description><![CDATA[?View Code C#import &#60;Foundation/Foundation.h&#62; &#160; int main &#40;int argc, const char * argv&#91;&#93;&#41; &#123; NSAutoreleasePool * pool = &#91;&#91;NSAutoreleasePool alloc&#93; init&#93;; //+ (id) stringWithFormat: (NSString *) format,...; NSMutableString *friends=&#91;NSMutableString stringWithCapacity:50&#93;; &#91;friends appendFormat:@&#34;I love duoduoluo,and you?&#34;&#93;; NSRange range=&#91;friends rangeOfString:@&#34;you&#34;&#93;; range.length++; &#91;friends deleteCharactersInRange:range&#93;; NSLog&#40;@&#34;%@&#34;,friends&#41;; &#91;pool drain&#93;; return 0; &#125; 输出:[Session started at 2010-08-18 17:25:58 +0800.] 2010-08-18 17:25:58.802 [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1374code6'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13746"><td class="code" id="p1374code6"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#import &lt;Foundation/Foundation.h&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> main <span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">const</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span> argv<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    NSAutoreleasePool <span style="color: #339933;">*</span> pool <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span>NSAutoreleasePool alloc<span style="color: #009900;">&#93;</span> init<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">//+ (id) stringWithFormat: (NSString *) format,...;</span>
    NSMutableString <span style="color: #339933;">*</span>friends<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>NSMutableString stringWithCapacity<span style="color: #339933;">:</span><span style="color: #0000dd;">50</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#91;</span>friends appendFormat<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;I love duoduoluo,and you?&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	NSRange range<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>friends rangeOfString<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;you&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	range.<span style="color: #202020;">length</span><span style="color: #339933;">++;</span>
	<span style="color: #009900;">&#91;</span>friends deleteCharactersInRange<span style="color: #339933;">:</span>range<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	NSLog<span style="color: #009900;">&#40;</span>@<span style="color: #ff0000;">&quot;%@&quot;</span><span style="color: #339933;">,</span>friends<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#91;</span>pool drain<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>输出:[Session started at 2010-08-18 17:25:58 +0800.]<br />
2010-08-18 17:25:58.802 nsstring[148:903] I love duoduoluo,and </p>
<p>The Debugger has exited with status 0</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsmutablestring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective_c学习笔记之NSRange</title>
		<link>http://qijuzhu.cn/objective_c%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsrange/</link>
		<comments>http://qijuzhu.cn/objective_c%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsrange/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 08:29:54 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Objective_c]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1370</guid>
		<description><![CDATA[?View Code C#import &#60;Foundation/Foundation.h&#62; &#160; int main &#40;int argc, const char * argv&#91;&#93;&#41; &#123; NSAutoreleasePool * pool = &#91;&#91;NSAutoreleasePool alloc&#93; init&#93;; &#160; NSString *homeword=@&#34;I love duoduoluo&#34;;//字符串 NSRange range=NSMakeRange&#40;3, 8&#41;;//范围从3开始选取8个字符 NSRange range2=&#91;homeword rangeOfString:@&#34;duoduo&#34;&#93;;//判断是否存在此字符串 if&#40;range2.length&#62;0&#41;&#123; &#160; NSLog&#40;@&#34;%@&#34;,NSStringFromRange&#40;range2&#41;&#41;;//输出行列 &#125; NSLog&#40;@&#34;%@&#34;,&#91;homeword substringWithRange:range&#93;&#41;;//输出截取的字符串 &#91;pool drain&#93;; return 0; &#125; 输出： [Session started at 2010-08-17 16:29:14 +0800.] 2010-08-17 16:29:15.003 nsstring[257:903] {7, 6} [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1370code8'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13708"><td class="code" id="p1370code8"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#import &lt;Foundation/Foundation.h&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> main <span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">const</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span> argv<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    NSAutoreleasePool <span style="color: #339933;">*</span> pool <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span>NSAutoreleasePool alloc<span style="color: #009900;">&#93;</span> init<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
    NSString <span style="color: #339933;">*</span>homeword<span style="color: #339933;">=</span>@<span style="color: #ff0000;">&quot;I love duoduoluo&quot;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//字符串</span>
	NSRange range<span style="color: #339933;">=</span>NSMakeRange<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">3</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//范围从3开始选取8个字符</span>
	NSRange range2<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>homeword rangeOfString<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;duoduo&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//判断是否存在此字符串</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>range2.<span style="color: #202020;">length</span><span style="color: #339933;">&gt;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
		NSLog<span style="color: #009900;">&#40;</span>@<span style="color: #ff0000;">&quot;%@&quot;</span><span style="color: #339933;">,</span>NSStringFromRange<span style="color: #009900;">&#40;</span>range2<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//输出行列</span>
	<span style="color: #009900;">&#125;</span>
	NSLog<span style="color: #009900;">&#40;</span>@<span style="color: #ff0000;">&quot;%@&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span>homeword substringWithRange<span style="color: #339933;">:</span>range<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//输出截取的字符串</span>
    <span style="color: #009900;">&#91;</span>pool drain<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>输出：<br />
[Session started at 2010-08-17 16:29:14 +0800.]<br />
2010-08-17 16:29:15.003 nsstring[257:903] {7, 6}<br />
2010-08-17 16:29:15.007 nsstring[257:903] ove duod</p>
<p>The Debugger has exited with status 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/objective_c%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8bnsrange/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Objective-C 2.0学习笔记之略有成就</title>
		<link>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8b%e7%95%a5%e6%9c%89%e6%88%90%e5%b0%b1/</link>
		<comments>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8b%e7%95%a5%e6%9c%89%e6%88%90%e5%b0%b1/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 16:17:54 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1362</guid>
		<description><![CDATA[学了这么多天的Objective-C，终于照书上的代码写出了一个小程序，功能简单的简直可笑，只是实现了字母的大小写转换。 虽然我对面向对象理解还行，但是因为没C基础，所以学起来Objective-C还是非常吃力的。不过最艰难的地方已经过去了。再不会像前几天一样天天痛苦的Debug了。]]></description>
			<content:encoded><![CDATA[<p>学了这么多天的Objective-C，终于照书上的代码写出了一个小程序，功能简单的简直可笑，只是实现了字母的大小写转换。</p>
<p style="text-align: center;"><a href="http://qijuzhu.cn/wp-content/uploads/2010/08/objectivec.jpg"><img title="objectivec" src="http://qijuzhu.cn/wp-content/uploads/2010/08/objectivec.jpg" alt="Objective-C" width="664" height="463" /></a></p>
<p>虽然我对面向对象理解还行，但是因为没C基础，所以学起来Objective-C还是非常吃力的。不过最艰难的地方已经过去了。再不会像前几天一样天天痛苦的Debug了。</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e4%b9%8b%e7%95%a5%e6%9c%89%e6%88%90%e5%b0%b1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>不能牵手</title>
		<link>http://qijuzhu.cn/%e4%b8%8d%e8%83%bd%e7%89%b5%e6%89%8b/</link>
		<comments>http://qijuzhu.cn/%e4%b8%8d%e8%83%bd%e7%89%b5%e6%89%8b/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 16:22:34 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[theboy]]></category>
		<category><![CDATA[小白]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1333</guid>
		<description><![CDATA[十多年前，我在一个多雨的小镇上读书。这个小镇西边有一条河流，活水，沙底。夏天傍晚，站在高处望去，潺潺的河水浮着片片破碎的阳光,柔软的像绸缎。 这个小镇有逼仄的街道，拥挤的集市，白灰勾缝的砖墙和永远也下不完的潮湿的雨。小镇最好吃的是五毛钱的香酥饼和一块钱五一碗的面条（翻墙？不用，那时初中还未住校）。 小镇有一条至今还健在的街道，这个街道以出售廉价的衣服而闻名河内外。那时候那条街道以竹为骨，以布为裳搭建而成，街道两旁全是浅笑盈盈的女孩。我经常去买十一块钱一双的双星鞋。我小的时候都是穿家里做的软底布鞋，就是古老的千层底，这种鞋现在备受推崇，但是我对这样的软底鞋是深恶痛绝：小孩脚踝骨软，这鞋穿多了脚会走形，我的脚现在就是踝骨向外撇着。 回想起来，生活和感情总是乏善可陈，2000年的时候，我已经在这个小镇上读高中了。因为家境原因，加之父母不合，每次我要生活费他们都是互相推诿，大部分岁月里我的生活标准是每天三块钱，说起来难以质信，我那时候竟然还能省下钱来买书读。我向来是一个勤奋的人，还有那么一丁点儿的聪明。我怀念的是在月光下读《围城》的我，和校门口那些廉价的盗版书。那时候没有爱情。虽然我也有喜欢的女孩，但是年岁渐长，我已经忘记了她的脸庞和笑容。 我是一个羞涩的人，Zell经常惊呼：“快看，快看，小白脸红了！”（这么卖力，收门票啊）。然而，据说，男生的脸红是泡妞的绝技，所以我一直在保持我的绝技。我现在喝酒严重过敏，不但脸红，肚皮也红，脚指头也红，找个肚兜穿上就可以演红孩儿了。 高中我看了无数的书，读书笔记记了五本，约20万字，因为我想要当个作家。大学读的是中文系，一上大学我就开始学计算机了，做网站和SEO。虽然我现在还保持良好的阅读习惯，但如钱钟书所说，当作家的念头早已打胎般的打掉了。 我怀念这个小镇，怀念我逝去的黄金时代。现在的我虽然灯火不熄的彻夜学习，但是功利心偏重，有时候我想，在月光下读围城的那个我怎么不存在了呢，有时候我又想，反反复复牵挂的那个人儿怎么不存在了呢。 我不是生活在回忆里，现在的我和以前一样努力。我不但要生存还要追求终级价值。 高中毕业后，我到了一个鸟不拉屎（鸟去拉屎?）的地方读大学，大学期间我经历了我永生难忘的爱情。虽然结局照例是悲伤的（文章的中心思想啊，不能牵手），但是人心还是好的。我很不愿提起我和Suki的事儿。我和她在一起的时候永远和小朋友一样开开心心，我们从来不吵架，我吃什么她吃什么。樱花虽然凋谢了，但它毕竟灿烂地盛开过。 我现在工作两年多了，交了方兄和沈这样的好兄弟，但是大多数时候我还是寂寞的。他们都是有家室的人，要按时回家，不像我，单位和家是一样的概念。 虽然我挣钱越来越多，但是家里的负担也越来越重，金钱之于我，只是一个数目，这世上难道只有金钱没有别的追求了么？ 一切都无可奈何的走向庸俗。 娃儿们娃儿们玩，女儿们女儿们玩，蛤蟆咕逗搅着玩。 歪带帽，狗材料，接个老婆不下轿。 刮大风，我凉快，下大雨，我回来，妈呀妈呀门开开，外头冻死个小乖乖]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://qijuzhu.cn/wp-content/uploads/2010/08/qianshou.jpg"><img class="aligncenter" title="牵手图片" src="http://qijuzhu.cn/wp-content/uploads/2010/08/qianshou.jpg" alt="牵手图片" width="390" height="290" /></a></p>
<p>十多年前，我在一个多雨的小镇上读书。这个小镇西边有一条河流，活水，沙底。夏天傍晚，站在高处望去，潺潺的河水浮着片片破碎的阳光,柔软的像绸缎。<br />
这个小镇有逼仄的街道，拥挤的集市，白灰勾缝的砖墙和永远也下不完的潮湿的雨。小镇最好吃的是五毛钱的香酥饼和一块钱五一碗的面条（翻墙？不用，那时初中还未住校）。</p>
<p>小镇有一条至今还健在的街道，这个街道以出售廉价的衣服而闻名河内外。那时候那条街道以竹为骨，以布为裳搭建而成，街道两旁全是浅笑盈盈的女孩。我经常去买十一块钱一双的双星鞋。我小的时候都是穿家里做的软底布鞋，就是古老的千层底，这种鞋现在备受推崇，但是我对这样的软底鞋是深恶痛绝：小孩脚踝骨软，这鞋穿多了脚会走形，我的脚现在就是踝骨向外撇着。</p>
<p>回想起来，生活和感情总是乏善可陈，2000年的时候，我已经在这个小镇上读高中了。因为家境原因，加之父母不合，每次我要生活费他们都是互相推诿，大部分岁月里我的生活标准是每天三块钱，说起来难以质信，我那时候竟然还能省下钱来买书读。我向来是一个勤奋的人，还有那么一丁点儿的聪明。我怀念的是在月光下读《围城》的我，和校门口那些廉价的盗版书。那时候没有爱情。虽然我也有喜欢的女孩，但是年岁渐长，我已经忘记了她的脸庞和笑容。</p>
<p>我是一个羞涩的人，Zell经常惊呼：“快看，快看，<a href="http://qijuzhu.cn/"target="_blank"title="小白" >小白</a>脸红了！”（这么卖力，收门票啊）。然而，据说，男生的脸红是泡妞的绝技，所以我一直在保持我的绝技。我现在喝酒严重过敏，不但脸红，肚皮也红，脚指头也红，找个肚兜穿上就可以演红孩儿了。</p>
<p>高中我看了无数的书，读书笔记记了五本，约20万字，因为我想要当个作家。大学读的是中文系，一上大学我就开始学计算机了，做网站和<a href="http://qijuzhu.cn/tag/seo/"target="_blank"title="seo" >SEO</a>。虽然我现在还保持良好的阅读习惯，但如钱钟书所说，当作家的念头早已打胎般的打掉了。</p>
<p>我怀念这个小镇，怀念我<a href="http://qijuzhu.cn/%e9%80%9d%e5%8e%bb%e7%9a%84%e9%bb%84%e9%87%91%e6%97%b6%e4%bb%a3/">逝去的黄金时代</a>。现在的我虽然灯火不熄的彻夜学习，但是功利心偏重，有时候我想，在月光下读围城的那个我怎么不存在了呢，有时候我又想，反反复复牵挂的那个人儿怎么不存在了呢。</p>
<p>我不是生活在回忆里，现在的我和以前一样努力。我不但要生存还要追求<a href="http://qijuzhu.cn/%e7%99%bd%e5%a4%b4%e7%bf%81/" target="_blank">终级价值</a>。</p>
<p>高中毕业后，我到了一个鸟不拉屎（鸟去拉屎?）的地方读大学，大学期间我经历了我永生难忘的爱情。虽然结局照例是悲伤的（文章的中心思想啊，不能牵手），但是人心还是好的。我很不愿提起我和<a href="http://qitiao.cn"target="_blank"title="suki" >Suki</a>的事儿。我和她在一起的时候永远和<a href="http://qijuzhu.cn/lala/" target="_blank">小朋友</a>一样开开心心，我们从来不吵架，我吃什么她吃什么。樱花虽然凋谢了，但它毕竟灿烂地盛开过。</p>
<p>我现在工作两年多了，交了方兄和沈这样的好兄弟，但是大多数时候我还是寂寞的。他们都是有家室的人，要按时回家，不像我，单位和家是一样的概念。</p>
<p>虽然我挣钱越来越多，但是家里的负担也越来越重，金钱之于我，只是一个数目，这世上难道只有金钱没有别的追求了么？</p>
<p>一切都无可奈何的走向庸俗。</p>
<p><span style="text-decoration: line-through;">娃儿们娃儿们玩，女儿们女儿们玩，蛤蟆咕逗搅着玩。</span></p>
<p><span style="text-decoration: line-through;"> 歪带帽，狗材料，接个老婆不下轿。</span></p>
<p><span style="text-decoration: line-through;">刮大风，我凉快，下大雨，我回来，妈呀妈呀门开开，外头冻死个小乖乖 </span></p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/%e4%b8%8d%e8%83%bd%e7%89%b5%e6%89%8b/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Objective-C 2.0学习笔记</title>
		<link>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/</link>
		<comments>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 14:54:58 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1344</guid>
		<description><![CDATA[代码只供我自己复习知识用，主要是巩固SEL IMP Selector。 dog.h文件： ?View Code C//省略大部分代码 #import &#34;mydog.h&#34; @interface reddog : mydog&#123; SEL say; IMP setFun; id dog&#91;3&#93;; &#160; &#125; - &#40;void&#41; doSometing; - &#40;void&#41; says; dog.m文件: ?View Code C//省略大部分代码 #import &#34;dog.h&#34; @implementation reddog - &#40;void&#41; doSometing&#123; dog&#91;0&#93;=&#91;reddog new&#93;; say=@selector&#40;says&#41;; sayFun=&#91;dog&#91;0&#93; methodForSelector say&#93;; sayFun&#40;dog&#91;0&#93;,say&#41;; &#125; - &#40;void&#41; says&#123; NSLog&#40;&#34;Hello Objective_c,wang wang!&#34;&#41;; &#125; main: ?View [...]]]></description>
			<content:encoded><![CDATA[<p>代码只供我自己复习知识用，主要是巩固SEL IMP Selector。<br />
dog.h文件：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1344code12'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p134412"><td class="code" id="p1344code12"><pre class="c" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//省略大部分代码</span>
<span style="color: #339933;">#import &quot;mydog.h&quot;</span>
@interface reddog <span style="color: #339933;">:</span> mydog<span style="color: #009900;">&#123;</span>
 SEL say<span style="color: #339933;">;</span>
 IMP setFun<span style="color: #339933;">;</span>
 id dog<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span> doSometing<span style="color: #339933;">;</span>
<span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span> says<span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>dog.m文件:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1344code13'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p134413"><td class="code" id="p1344code13"><pre class="c" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//省略大部分代码</span>
<span style="color: #339933;">#import &quot;dog.h&quot;</span>
@implementation reddog
<span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span> doSometing<span style="color: #009900;">&#123;</span>
 dog<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>reddog new<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
 say<span style="color: #339933;">=</span>@selector<span style="color: #009900;">&#40;</span>says<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 sayFun<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>dog<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#93;</span> methodForSelector say<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
 sayFun<span style="color: #009900;">&#40;</span>dog<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>say<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span> says<span style="color: #009900;">&#123;</span>
 NSLog<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hello Objective_c,wang wang!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>main:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1344code14'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p134414"><td class="code" id="p1344code14"><pre class="c" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//省略大部分代码</span>
main<span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//...</span>
&nbsp;
  reddog <span style="color: #339933;">*</span>makeDog<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>reddog new<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#91;</span>makeDog doSometing<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//输出：狗叫声...</span>
 <span style="color: #666666; font-style: italic;">//...</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/objective-c-2-0%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Russian Art Collectors</title>
		<link>http://qijuzhu.cn/russian-art-collectors/</link>
		<comments>http://qijuzhu.cn/russian-art-collectors/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 08:03:32 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Russian Art Collectors]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1340</guid>
		<description><![CDATA[我一高中死党，现在不一小心成了美国人。我和我同事称美国为美怪。所以他是美怪人。他老爷子（什么概念？）是美怪最大的俄罗斯油画经销商，旗下网站Russian Art Collectors。我仔细看了这个Russian Art Collectors，SEO做得非常差，正好我这美怪的同学让我帮忙给这个站做SEO。不过暂时还没发给我FTP，我只能做外链去提高排名。 这幅画很像我小时候生活的村子，原图在这里。]]></description>
			<content:encoded><![CDATA[<p>我一高中死党，现在不一小心成了美国人。我和我同事称美国为美怪。所以他是美怪人。他老爷子（什么概念？）是美怪最大的俄罗斯油画经销商，旗下网站<a title="Russian Art Collectors" href="http://mccartheygallery.net/" target="_blank">Russian Art Collectors</a>。我仔细看了这个Russian Art Collectors，<a href="http://qijuzhu.cn/tag/seo/"target="_blank"title="seo" >SEO</a>做得非常差，正好我这美怪的同学让我帮忙给这个站做SEO。不过暂时还没发给我FTP，我只能做外链去提高排名。</p>
<p style="text-align: center;"><a href="http://qijuzhu.cn/wp-content/uploads/2010/08/Russian-Art-Collectors.jpg"><img class="aligncenter" title="Russian Art Collectors" src="http://qijuzhu.cn/wp-content/uploads/2010/08/Russian-Art-Collectors.jpg" alt="Russian Art Collectors.jpg" width="443" height="315" /></a></p>
<p>这幅画很像我小时候生活的村子，原图在<a href="http://www.mccartheygallery.net/images/stories/home-stories/Gritsai.jpg">这里</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/russian-art-collectors/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SOSO快照回档</title>
		<link>http://qijuzhu.cn/soso%e5%bf%ab%e7%85%a7%e5%9b%9e%e6%a1%a3/</link>
		<comments>http://qijuzhu.cn/soso%e5%bf%ab%e7%85%a7%e5%9b%9e%e6%a1%a3/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 00:53:43 +0000</pubDate>
		<dc:creator>theboy</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://qijuzhu.cn/?p=1337</guid>
		<description><![CDATA[我前些日子做了一个小的SEO项目，用来测试域名的权重。主关键词是中国移动网上营业厅,今天看流量的时候发现SOSO的快照回档到2000-04-20。 不知道出现这样的情况是不是SOSO在做调整。]]></description>
			<content:encoded><![CDATA[<p>我前些日子做了一个小的<a href="http://qijuzhu.cn/tag/seo/"target="_blank"title="seo" >SEO</a>项目，用来测试域名的权重。主关键词是<a href="http://yuansui.com">中国移动网上营业厅</a>,今天看流量的时候发现SOSO的快照回档到2000-04-20。</p>
<p style="text-align: center;"><a href="http://qijuzhu.cn/wp-content/uploads/2010/08/soso.jpg"><img class="aligncenter" title="soso" src="http://qijuzhu.cn/wp-content/uploads/2010/08/soso.jpg" alt="soso快照回档" width="284" height="117" /></a></p>
<p>不知道出现这样的情况是不是SOSO在做调整。</p>
]]></content:encoded>
			<wfw:commentRss>http://qijuzhu.cn/soso%e5%bf%ab%e7%85%a7%e5%9b%9e%e6%a1%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

