<?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: Initializers</title>
	<atom:link href="http://MacDeveloperTips.com/objective-c/objective-c-initializers.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MacDeveloperTips.com/objective-c/objective-c-initializers.html</link>
	<description>Tips, tools and code for iPhone and Mac developers.</description>
	<lastBuildDate>Fri, 30 Jul 2010 22:59:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: john</title>
		<link>http://MacDeveloperTips.com/objective-c/objective-c-initializers.html/comment-page-1#comment-439</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 17 Aug 2008 01:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://MacDeveloperTips.com/?p=223#comment-439</guid>
		<description>Comments are closed on this post. You can comment on this same post which has been moved to the iPhone Developer Tips blog: http://iphonedevelopertips.com/objective-c/initializers.html</description>
		<content:encoded><![CDATA[<p>Comments are closed on this post. You can comment on this same post which has been moved to the iPhone Developer Tips blog: <a href="http://iphonedevelopertips.com/objective-c/initializers.html" rel="nofollow">http://iphonedevelopertips.com/objective-c/initializers.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stompy</title>
		<link>http://MacDeveloperTips.com/objective-c/objective-c-initializers.html/comment-page-1#comment-434</link>
		<dc:creator>stompy</dc:creator>
		<pubDate>Fri, 15 Aug 2008 08:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://MacDeveloperTips.com/?p=223#comment-434</guid>
		<description>@funkyboy

I&#039;d suggest a different method:

set up a designated initializer 

- init (parameter p1, parameter p2)

and have your initialisers call this initialiser with default values for the parameters not passed in.</description>
		<content:encoded><![CDATA[<p>@funkyboy</p>
<p>I&#8217;d suggest a different method:</p>
<p>set up a designated initializer </p>
<p>- init (parameter p1, parameter p2)</p>
<p>and have your initialisers call this initialiser with default values for the parameters not passed in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://MacDeveloperTips.com/objective-c/objective-c-initializers.html/comment-page-1#comment-374</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 30 Jun 2008 22:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://MacDeveloperTips.com/?p=223#comment-374</guid>
		<description>I&#039;m not sure what you mean. Do you mean three initializer methods, one that takes no parameter, one that takes one data type (say NSSinteger) and another that takes a different data type, say NSDate?

In that case, you could still use the code above, passing in nil for any parameters that you don&#039;t have. For instance, if you want to initialize a date but not a string, pass in nil for the string. And vice-versa, if you want to initialize a string but not the date, pass in nil for the date.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what you mean. Do you mean three initializer methods, one that takes no parameter, one that takes one data type (say NSSinteger) and another that takes a different data type, say NSDate?</p>
<p>In that case, you could still use the code above, passing in nil for any parameters that you don&#8217;t have. For instance, if you want to initialize a date but not a string, pass in nil for the string. And vice-versa, if you want to initialize a string but not the date, pass in nil for the date.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: funkyboy</title>
		<link>http://MacDeveloperTips.com/objective-c/objective-c-initializers.html/comment-page-1#comment-373</link>
		<dc:creator>funkyboy</dc:creator>
		<pubDate>Mon, 30 Jun 2008 13:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://MacDeveloperTips.com/?p=223#comment-373</guid>
		<description>Hi,

very interesting post! And also interesting web site initiative.
One question (I struggled with):

What if my domain is modeled in a way that there is:

- init (no parameters)
- init (a parameter p1)
- init (a parameter p2)

is it p1 to call p2 or viceversa?

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>very interesting post! And also interesting web site initiative.<br />
One question (I struggled with):</p>
<p>What if my domain is modeled in a way that there is:</p>
<p>- init (no parameters)<br />
- init (a parameter p1)<br />
- init (a parameter p2)</p>
<p>is it p1 to call p2 or viceversa?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
