<?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 for Matt Galloway&#039;s iPhone Apps</title>
	<atom:link href="http://iphone.galloway.me.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphone.galloway.me.uk</link>
	<description>iPhone Applications</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:42:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Singleton Classes by bearnun</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-3/#comment-24184</link>
		<dc:creator>bearnun</dc:creator>
		<pubDate>Thu, 02 Feb 2012 17:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-24184</guid>
		<description>Sure!  I changed variable names a little to correspond to my code, but Match is &quot;MyManager&quot; basically.

&quot;Match.h&quot;
#import 

@interface Match : NSObject {
    NSString *meetName;
}


//Corresponding getText from textFields
@property (nonatomic, copy) NSString *meetName;

+ (id)thisMatch;

@end

&quot;Match.m&quot;
#import &quot;Match.h&quot;

static Match *thisISMatch = nil;

@implementation Match

@dynamic meetName;

+ (id)thisMatch {
    @synchronized(self) {
        if (thisISMatch == nil)
            thisISMatch = [[self alloc] init];
    }
    return thisISMatch;
}

- (id)init {
    if (self = [super init]) {
        meetName = [[NSString alloc] initWithString:@&quot;Default Property Value&quot;];
    }
    return self;
}


@end

Then I try to use the code by referencing the singleton in another class&#039;s header file:

Match *thisMatch = [Match thisMatch];

This is the line that is being troublesome.  The error I mentioned is on this equal sign.</description>
		<content:encoded><![CDATA[<p>Sure!  I changed variable names a little to correspond to my code, but Match is &#8220;MyManager&#8221; basically.</p>
<p>&#8220;Match.h&#8221;<br />
#import </p>
<p>@interface Match : NSObject {<br />
    NSString *meetName;<br />
}</p>
<p>//Corresponding getText from textFields<br />
@property (nonatomic, copy) NSString *meetName;</p>
<p>+ (id)thisMatch;</p>
<p>@end</p>
<p>&#8220;Match.m&#8221;<br />
#import &#8220;Match.h&#8221;</p>
<p>static Match *thisISMatch = nil;</p>
<p>@implementation Match</p>
<p>@dynamic meetName;</p>
<p>+ (id)thisMatch {<br />
    @synchronized(self) {<br />
        if (thisISMatch == nil)<br />
            thisISMatch = [[self alloc] init];<br />
    }<br />
    return thisISMatch;<br />
}</p>
<p>- (id)init {<br />
    if (self = [super init]) {<br />
        meetName = [[NSString alloc] initWithString:@&#8221;Default Property Value&#8221;];<br />
    }<br />
    return self;<br />
}</p>
<p>@end</p>
<p>Then I try to use the code by referencing the singleton in another class&#8217;s header file:</p>
<p>Match *thisMatch = [Match thisMatch];</p>
<p>This is the line that is being troublesome.  The error I mentioned is on this equal sign.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Singleton Classes by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-3/#comment-24171</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Thu, 02 Feb 2012 09:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-24171</guid>
		<description>@bearnun - Have you added &lt;code&gt;#import &quot;MyManager.h&quot;&lt;/code&gt; in the code that is using &lt;code&gt;MyManager&lt;/code&gt;? If that&#039;s not it then would you mind pasting a bit of code so I can maybe see what&#039;s going on?</description>
		<content:encoded><![CDATA[<p>@bearnun &#8211; Have you added <code>#import "MyManager.h"</code> in the code that is using <code>MyManager</code>? If that&#8217;s not it then would you mind pasting a bit of code so I can maybe see what&#8217;s going on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Singleton Classes by bearnun</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-3/#comment-24149</link>
		<dc:creator>bearnun</dc:creator>
		<pubDate>Thu, 02 Feb 2012 01:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-24149</guid>
		<description>Hey, love the Singleton code.  

I tried emulating what you wrote in my code (ARC supported) but I&#039;m getting an &quot;Expected &#039;;&#039; at end of declaration list&quot; error on the singleton instantiation/declaration: MyManager *sharedManager = [MyManager sharedManager]; (The error is pointing at the equal&#039;s sign)

I&#039;m definitely not missing any semi-colons, do you have any idea what else might cause that error?</description>
		<content:encoded><![CDATA[<p>Hey, love the Singleton code.  </p>
<p>I tried emulating what you wrote in my code (ARC supported) but I&#8217;m getting an &#8220;Expected &#8216;;&#8217; at end of declaration list&#8221; error on the singleton instantiation/declaration: MyManager *sharedManager = [MyManager sharedManager]; (The error is pointing at the equal&#8217;s sign)</p>
<p>I&#8217;m definitely not missing any semi-colons, do you have any idea what else might cause that error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Subnet Calc Pro by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/iphone-apps/subnetcalcpro/comment-page-1/#comment-24056</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Tue, 31 Jan 2012 16:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.galloway.me.uk/iphone-new/?page_id=9#comment-24056</guid>
		<description>@Enaam - What do you mean? You can download it from iTunes here - http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=303555213</description>
		<content:encoded><![CDATA[<p>@Enaam &#8211; What do you mean? You can download it from iTunes here &#8211; <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=303555213" rel="nofollow">http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=303555213</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Subnet Calc Pro by Enaam</title>
		<link>http://iphone.galloway.me.uk/iphone-apps/subnetcalcpro/comment-page-1/#comment-24034</link>
		<dc:creator>Enaam</dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.galloway.me.uk/iphone-new/?page_id=9#comment-24034</guid>
		<description>Hello,
Dear matt

can u plzz tell me that how to download it on here ?

Thanx &amp; Regards,
Ansari Enaam.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Dear matt</p>
<p>can u plzz tell me that how to download it on here ?</p>
<p>Thanx &amp; Regards,<br />
Ansari Enaam.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom UITableViewCell in IB by Cullen</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-23050</link>
		<dc:creator>Cullen</dc:creator>
		<pubDate>Wed, 11 Jan 2012 16:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-23050</guid>
		<description>This is great tutorial. Simple but powerful technique. Thanks.</description>
		<content:encoded><![CDATA[<p>This is great tutorial. Simple but powerful technique. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on View Controller Hierarchy in IB by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/view-controller-hierarchy-in-interface-builder/comment-page-1/#comment-22289</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Wed, 28 Dec 2011 09:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=60#comment-22289</guid>
		<description>Ah yes that&#039;s a very good point. This tutorial is for Xcode 3 rather than Xcode 4. It does this sort of hierarchical view by default in Xcode 4.</description>
		<content:encoded><![CDATA[<p>Ah yes that&#8217;s a very good point. This tutorial is for Xcode 3 rather than Xcode 4. It does this sort of hierarchical view by default in Xcode 4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on View Controller Hierarchy in IB by Bo Ericsson</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/view-controller-hierarchy-in-interface-builder/comment-page-1/#comment-22254</link>
		<dc:creator>Bo Ericsson</dc:creator>
		<pubDate>Tue, 27 Dec 2011 21:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=60#comment-22254</guid>
		<description>I can&#039;t replicate this in Xcode 4.2.1. There doesn&#039;t seem to be a control like the one you&#039;re describing above in this version of Xcode to expand the hierarchical view. What should I be doing to see this view in the latest Xcode?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t replicate this in Xcode 4.2.1. There doesn&#8217;t seem to be a control like the one you&#8217;re describing above in this version of Xcode to expand the hierarchical view. What should I be doing to see this view in the latest Xcode?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom UITableViewCell in IB by Herbert Altink</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-21889</link>
		<dc:creator>Herbert Altink</dc:creator>
		<pubDate>Wed, 21 Dec 2011 20:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-21889</guid>
		<description>Hi, 

It is a good tut. But it&#039;s not in xcode4.. Here is another tutorial in xcode4 http://www.altinkonline.nl/tutorials/xcode/uitableview/uitableviewcell/</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>It is a good tut. But it&#8217;s not in xcode4.. Here is another tutorial in xcode4 <a href="http://www.altinkonline.nl/tutorials/xcode/uitableview/uitableviewcell/" rel="nofollow">http://www.altinkonline.nl/tutorials/xcode/uitableview/uitableviewcell/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Singleton Classes by Josh Lehman</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-3/#comment-21439</link>
		<dc:creator>Josh Lehman</dc:creator>
		<pubDate>Thu, 15 Dec 2011 03:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-21439</guid>
		<description>Great summary. Really helped me put the singleton pattern into context for iOS.

One question... is there any issue with using a pattern like this to manage async communication with an outside web service? Being that the singleton is not really retained and only used for the intended process, does that process remain open to receive callbacks upon async completion of a process?

Thanks Matt!</description>
		<content:encoded><![CDATA[<p>Great summary. Really helped me put the singleton pattern into context for iOS.</p>
<p>One question&#8230; is there any issue with using a pattern like this to manage async communication with an outside web service? Being that the singleton is not really retained and only used for the intended process, does that process remain open to receive callbacks upon async completion of a process?</p>
<p>Thanks Matt!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

