<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Objective-C Programming Part III.</title>
	<atom:link href="http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/</link>
	<description>All About Mac and iPhone Programming</description>
	<lastBuildDate>Sat, 17 Sep 2011 15:01:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: kantae</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-246</link>
		<dc:creator>kantae</dc:creator>
		<pubDate>Sat, 17 Sep 2011 14:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-246</guid>
		<description>&quot;ส่วน init เป็น Function สืบทอดมาจาก NSObject ใช่แล้วครับ&quot;
คือ ตอนที่ผมสรา้ง class ใหม่ใน xcode ให้เป็น child class ทีนี้ มันมี method 
- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}
ผมสามารถลบมันทิ้งได้มั้ยครับ เพราะว่ายังไงมันก็สืบทอดมาแล้ว ไม่ต้องเขียนก็ได้</description>
		<content:encoded><![CDATA[<p>&#8220;ส่วน init เป็น Function สืบทอดมาจาก NSObject ใช่แล้วครับ&#8221;<br />
คือ ตอนที่ผมสรา้ง class ใหม่ใน xcode ให้เป็น child class ทีนี้ มันมี method<br />
- (id)init<br />
{<br />
    self = [super init];<br />
    if (self) {<br />
        // Initialization code here.<br />
    }</p>
<p>    return self;<br />
}<br />
ผมสามารถลบมันทิ้งได้มั้ยครับ เพราะว่ายังไงมันก็สืบทอดมาแล้ว ไม่ต้องเขียนก็ได้</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adirak</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-171</link>
		<dc:creator>adirak</dc:creator>
		<pubDate>Tue, 29 Dec 2009 04:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-171</guid>
		<description>&quot;\n&quot;  คือ slat n  มันเป้นการบอกให้เว้นบรรทัดครับ แต่ใน html คงแสดงไม่ครบ</description>
		<content:encoded><![CDATA[<p>&#8220;\n&#8221;  คือ slat n  มันเป้นการบอกให้เว้นบรรทัดครับ แต่ใน html คงแสดงไม่ครบ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pondly</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-122</link>
		<dc:creator>pondly</dc:creator>
		<pubDate>Sun, 23 Aug 2009 11:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-122</guid>
		<description>พี่ค่ะ สงสัยตรง
printf(&quot;Car drive n&quot;);  &lt;&lt;&lt; ตัว n นี้มันไว้ทำไรค่ะ 
printf (&quot;Car drive at speed %d n&quot;,m_speed); &lt;&lt;&lt; ตัว n นี้มันไว้ทำไรค่ะ 

รบกวนด้วยค่ะ</description>
		<content:encoded><![CDATA[<p>พี่ค่ะ สงสัยตรง<br />
printf(&#8220;Car drive n&#8221;);  &lt;&lt;&lt; ตัว n นี้มันไว้ทำไรค่ะ<br />
printf (&quot;Car drive at speed %d n&quot;,m_speed); &lt;&lt;&lt; ตัว n นี้มันไว้ทำไรค่ะ </p>
<p>รบกวนด้วยค่ะ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-32</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 21 Mar 2008 15:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-32</guid>
		<description>แก้ไขแล้วครับ ขอบคุณมาก</description>
		<content:encoded><![CDATA[<p>แก้ไขแล้วครับ ขอบคุณมาก</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ....</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-31</link>
		<dc:creator>....</dc:creator>
		<pubDate>Sat, 15 Mar 2008 09:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-31</guid>
		<description>พี่เขียนผิดที่นึงอะ จาก Overloading พี่เขียนเป็น Overriding
ลองหาดู</description>
		<content:encoded><![CDATA[<p>พี่เขียนผิดที่นึงอะ จาก Overloading พี่เขียนเป็น Overriding<br />
ลองหาดู</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-30</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 06 Mar 2008 06:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-30</guid>
		<description>ครับก็เข้าใจถูกแล้วครับ [Car alloc] มันจะ เหมือนเป็นการบอกว่าสร้าง object ชนิด Car ขึ้นมานั่นเอง

คือ Car *honda = [[Car alloc] init];
ถ้าผมเขียนแบบยาวๆก็จะได้ว่า
Car *honda;          // Declare variable
honda = [Car alloc]; // Allocate Memory for object
[honda init];        // initial object

ถ้าจะเทียบกับ ภาษา C/C++ ก็จะได้ว่า
Car *honda;
honda = new Car;
honda-&gt;init();


 ส่วน init เป็น Function สืบทอดมาจาก NSObject ใช่แล้วครับ แต่ว่า อาจจะเห็นว่าผมเขียน Object แทนที่จะเป็น NSObject นี่ก็เพราะว่า เผื่อบางคน ไม่มี Mac แต่อยากลอง เขียน Objc ก็ต้องลง Mingw มันจะไม่มี NSObject แต่มี Object ซึ่งมันก็เหมือนกัน คือมันเป็น Foundation ของ Objc.

ถ้าไม่เข้าใจก็อะไรก็ถามได้ครับ ยินดีตอบ (ถ้าตอบได้น่ะ)</description>
		<content:encoded><![CDATA[<p>ครับก็เข้าใจถูกแล้วครับ [Car alloc] มันจะ เหมือนเป็นการบอกว่าสร้าง object ชนิด Car ขึ้นมานั่นเอง</p>
<p>คือ Car *honda = [[Car alloc] init];<br />
ถ้าผมเขียนแบบยาวๆก็จะได้ว่า<br />
Car *honda;          // Declare variable<br />
honda = [Car alloc]; // Allocate Memory for object<br />
[honda init];        // initial object</p>
<p>ถ้าจะเทียบกับ ภาษา C/C++ ก็จะได้ว่า<br />
Car *honda;<br />
honda = new Car;<br />
honda->init();</p>
<p> ส่วน init เป็น Function สืบทอดมาจาก NSObject ใช่แล้วครับ แต่ว่า อาจจะเห็นว่าผมเขียน Object แทนที่จะเป็น NSObject นี่ก็เพราะว่า เผื่อบางคน ไม่มี Mac แต่อยากลอง เขียน Objc ก็ต้องลง Mingw มันจะไม่มี NSObject แต่มี Object ซึ่งมันก็เหมือนกัน คือมันเป็น Foundation ของ Objc.</p>
<p>ถ้าไม่เข้าใจก็อะไรก็ถามได้ครับ ยินดีตอบ (ถ้าตอบได้น่ะ)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alvanzoe</title>
		<link>http://www.macfeteria.com/blog/2008/03/03/objective-c-programming-part-iii/comment-page-1/#comment-29</link>
		<dc:creator>alvanzoe</dc:creator>
		<pubDate>Wed, 05 Mar 2008 06:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://maccafe.wordpress.com/?p=15#comment-29</guid>
		<description>ผมเข้าใจว่า [object action ] นี้เป็นหลัก syntax ของ Obj-C แล้ว
[[Car alloc] init] แสดงว่า
ส่วนนี้ [Car alloc] เป็น object และ [Car alloc] ต้อง return เป็น object มาใช่มั้ยครับ แล้ว Function init นี้ สืบทอดมาจาก NSObject ใช่มั้ยครับ

iPhone SDK จะมาวันที่ 6 นี้แล้ว ผมยังไม่เข้าใจ syntax ของ Objective-C ซะเท่าไหร่เลย แล้ว พวก NSText,NSView ยังใช้ไม่ค่อยเป็นเลยครับ

ขอบคุณสำหรับบทความดีๆ ครับ
หาอ่านยากมากๆ Objective-C ภาษาไทย</description>
		<content:encoded><![CDATA[<p>ผมเข้าใจว่า [object action ] นี้เป็นหลัก syntax ของ Obj-C แล้ว<br />
[[Car alloc] init] แสดงว่า<br />
ส่วนนี้ [Car alloc] เป็น object และ [Car alloc] ต้อง return เป็น object มาใช่มั้ยครับ แล้ว Function init นี้ สืบทอดมาจาก NSObject ใช่มั้ยครับ</p>
<p>iPhone SDK จะมาวันที่ 6 นี้แล้ว ผมยังไม่เข้าใจ syntax ของ Objective-C ซะเท่าไหร่เลย แล้ว พวก NSText,NSView ยังใช้ไม่ค่อยเป็นเลยครับ</p>
<p>ขอบคุณสำหรับบทความดีๆ ครับ<br />
หาอ่านยากมากๆ Objective-C ภาษาไทย</p>
]]></content:encoded>
	</item>
</channel>
</rss>

