<?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: Global Variables in iPhone Objective-C</title>
	<atom:link href="http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/</link>
	<description>ManiacDev.Com</description>
	<lastBuildDate>Fri, 30 Jul 2010 04:43:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Frank</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-2740</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 16 Jun 2010 14:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-2740</guid>
		<description>I make use of 4 global variable parameters. Input once and used throughout three view controllers. Never modified.  I tried to use your singleton and sought advice from Stack Overflow on how best to get four UITextfields (the parameters) into the singleton variables. I came in for some criticism for a) using a singleton for such a piffling requirement and b) for not complying with the Apple recommended Design Pattern for a singleton. Can&#039;t win. Don&#039;t use Globals and don&#039;t use Singletons for program-wide use.

I ended up using 4 Globals and haven&#039;t looked back. So, when is it correct/incorrect to use a singleton?</description>
		<content:encoded><![CDATA[<p>I make use of 4 global variable parameters. Input once and used throughout three view controllers. Never modified.  I tried to use your singleton and sought advice from Stack Overflow on how best to get four UITextfields (the parameters) into the singleton variables. I came in for some criticism for a) using a singleton for such a piffling requirement and b) for not complying with the Apple recommended Design Pattern for a singleton. Can&#8217;t win. Don&#8217;t use Globals and don&#8217;t use Singletons for program-wide use.</p>
<p>I ended up using 4 Globals and haven&#8217;t looked back. So, when is it correct/incorrect to use a singleton?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dpmguise</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-2478</link>
		<dc:creator>dpmguise</dc:creator>
		<pubDate>Thu, 10 Jun 2010 22:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-2478</guid>
		<description>Great stuff, concise and simple.</description>
		<content:encoded><![CDATA[<p>Great stuff, concise and simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petrus Ali Saputra</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-1893</link>
		<dc:creator>Petrus Ali Saputra</dc:creator>
		<pubDate>Tue, 25 May 2010 12:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-1893</guid>
		<description>Hi, I&#039;m pretty new with Obj C. Every class that I know, always have dealloc method. Should I put dealloc in this Singleton? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m pretty new with Obj C. Every class that I know, always have dealloc method. Should I put dealloc in this Singleton? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-1595</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 17 May 2010 13:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-1595</guid>
		<description>Hi, I&#039;m having the same problem as Sean: 
– “VariableStore may not respond to variableName (messages without a matching method signature will be assumed to return id and accept &#039;…&#039; as arguments)

I&#039;m clearly missing some step, but which one?

Thanks
Daniel</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m having the same problem as Sean:<br />
– “VariableStore may not respond to variableName (messages without a matching method signature will be assumed to return id and accept &#8216;…&#8217; as arguments)</p>
<p>I&#8217;m clearly missing some step, but which one?</p>
<p>Thanks<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-1417</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 11 May 2010 08:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-1417</guid>
		<description>That post came out several months after mine so clearly they just copied.  Thanks for pointing that out.</description>
		<content:encoded><![CDATA[<p>That post came out several months after mine so clearly they just copied.  Thanks for pointing that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nico</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-1406</link>
		<dc:creator>nico</dc:creator>
		<pubDate>Mon, 10 May 2010 11:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-1406</guid>
		<description>btw: who is the thief ?
http://www.picksourcecode.com/ps/ct/161183.php

(@mod: you dont have to make this post public)</description>
		<content:encoded><![CDATA[<p>btw: who is the thief ?<br />
<a href="http://www.picksourcecode.com/ps/ct/161183.php" rel="nofollow">http://www.picksourcecode.com/ps/ct/161183.php</a></p>
<p>(@mod: you dont have to make this post public)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nico</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-1405</link>
		<dc:creator>nico</dc:creator>
		<pubDate>Mon, 10 May 2010 11:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-1405</guid>
		<description>i have searched for a solution like this, but - maybe i interpreted it wrong - i don&#039;t get the initialization at // initialize variables here to work
in the .m i have made this:

@implementation VariableStore
//synthesize [3]
@synthesize globalerstring;

+ (VariableStore *)sharedInstance
{....

in the .h 
#import 


@interface VariableStore : NSObject
{
    // Place any &quot;global&quot; variables here [1]
	NSString *globalerstring;
	
}
// message from which our instance is obtained
+ (VariableStore *)sharedInstance;

//properties [2]

@property (nonatomic,retain) NSString *globalerstring;

@end


maybe i haven&#039;t understood the principle in the right way. could anybody do one example for any variable ?</description>
		<content:encoded><![CDATA[<p>i have searched for a solution like this, but &#8211; maybe i interpreted it wrong &#8211; i don&#8217;t get the initialization at // initialize variables here to work<br />
in the .m i have made this:</p>
<p>@implementation VariableStore<br />
//synthesize [3]<br />
@synthesize globalerstring;</p>
<p>+ (VariableStore *)sharedInstance<br />
{&#8230;.</p>
<p>in the .h<br />
#import </p>
<p>@interface VariableStore : NSObject<br />
{<br />
    // Place any &#8220;global&#8221; variables here [1]<br />
	NSString *globalerstring;</p>
<p>}<br />
// message from which our instance is obtained<br />
+ (VariableStore *)sharedInstance;</p>
<p>//properties [2]</p>
<p>@property (nonatomic,retain) NSString *globalerstring;</p>
<p>@end</p>
<p>maybe i haven&#8217;t understood the principle in the right way. could anybody do one example for any variable ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-4138</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-4138</guid>
		<description>Thanks so much for this tip.  I&#039;ve been trying for a while to get the singleton to work.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this tip.  I&#39;ve been trying for a while to get the singleton to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-607</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Tue, 10 Nov 2009 13:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-607</guid>
		<description>Thanks so much for this tip.  I&#039;ve been trying for a while to get the singleton to work.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this tip.  I&#39;ve been trying for a while to get the singleton to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zheng</title>
		<link>http://maniacdev.com/2009/07/global-variables-in-iphone-objective-c/comment-page-1/#comment-519</link>
		<dc:creator>Zheng</dc:creator>
		<pubDate>Wed, 14 Oct 2009 20:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://maniacdev.com/?p=549#comment-519</guid>
		<description>Nice, thanks for sharing this</description>
		<content:encoded><![CDATA[<p>Nice, thanks for sharing this</p>
]]></content:encoded>
	</item>
</channel>
</rss>
