<?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>Fri, 05 Mar 2010 14:03:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Singleton Classes by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-1/#comment-791</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-791</guid>
		<description>@Florian - Make sure that when you set the string, you&#039;re retaining it in the singleton. You can either have the property set to assign or copy to achieve this but I usually use copy for NSStrings.

So one of these 2:
&lt;pre lang=&quot;objc&quot;&gt;
@property (nonatomic, retain) NSString *myString;
@property (nonatomic, copy) NSString *myString;
&lt;/pre&gt;

Then you would make sure to @synthesize them in the implementation and use the setter method:
&lt;pre lang=&quot;objc&quot;&gt;
mySingleton.myString = @&quot;Some string&quot;;
[mySingleton setMyString:@&quot;Some string&quot;];
&lt;/pre&gt;

Does that help?</description>
		<content:encoded><![CDATA[<p>@Florian &#8211; Make sure that when you set the string, you&#8217;re retaining it in the singleton. You can either have the property set to assign or copy to achieve this but I usually use copy for NSStrings.</p>
<p>So one of these 2:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>nonatomic, retain<span style="color: #002200;">&#41;</span> <span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>myString;
<span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>nonatomic, copy<span style="color: #002200;">&#41;</span> <span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>myString;</pre></div></div>

<p>Then you would make sure to @synthesize them in the implementation and use the setter method:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;">mySingleton.myString <span style="color: #002200;">=</span> <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Some string&quot;</span>;
<span style="color: #002200;">&#91;</span>mySingleton setMyString<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Some string&quot;</span><span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>Does that help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Singleton Classes by Florian Wagner</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-1/#comment-788</link>
		<dc:creator>Florian Wagner</dc:creator>
		<pubDate>Fri, 05 Mar 2010 12:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-788</guid>
		<description>Thanks so far Matt,
I am actually at an exebition far away from my MAC but I can share some more code when I come back in 10 days.
I have actually outcommened with // any release of the strings and the object for it is a singlton can never be released, right...
It&#039;s so strange. I also changed the properties as you recomended but they still disappear.
Have any suggestions at which point the NSString object might be autoreleased by the singlton pattern found on apples developer website???</description>
		<content:encoded><![CDATA[<p>Thanks so far Matt,<br />
I am actually at an exebition far away from my MAC but I can share some more code when I come back in 10 days.<br />
I have actually outcommened with // any release of the strings and the object for it is a singlton can never be released, right&#8230;<br />
It&#8217;s so strange. I also changed the properties as you recomended but they still disappear.<br />
Have any suggestions at which point the NSString object might be autoreleased by the singlton pattern found on apples developer website???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JSON Framework Codesign &#8211; &#8220;object file format invalid or unsuitable&#8221; by oscar</title>
		<link>http://iphone.galloway.me.uk/2009/04/json-framework-codesign-object-file-format-invalid-or-unsuitable/comment-page-1/#comment-783</link>
		<dc:creator>oscar</dc:creator>
		<pubDate>Wed, 03 Mar 2010 15:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=160#comment-783</guid>
		<description>you just saved me about 1 week.</description>
		<content:encoded><![CDATA[<p>you just saved me about 1 week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/about/comment-page-1/#comment-775</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Sat, 27 Feb 2010 17:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=2#comment-775</guid>
		<description>@Holger - Excellent idea. I think I&#039;ll add in the ability to reorder the rows which then gets saved for each time you load the app.

The reason for having IP address again in the calculation section is that when you view in hexadecimal or binary mode then it makes sense to have the IP visible in this notation, but to still be able to enter it in the standard dotted decimal manner.</description>
		<content:encoded><![CDATA[<p>@Holger &#8211; Excellent idea. I think I&#8217;ll add in the ability to reorder the rows which then gets saved for each time you load the app.</p>
<p>The reason for having IP address again in the calculation section is that when you view in hexadecimal or binary mode then it makes sense to have the IP visible in this notation, but to still be able to enter it in the standard dotted decimal manner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Holger</title>
		<link>http://iphone.galloway.me.uk/about/comment-page-1/#comment-774</link>
		<dc:creator>Holger</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=2#comment-774</guid>
		<description>Just got Subnet Calc (lite). 
Really lean and nice program! Cool!

I have a small request:
In the lower part the first two datalines are showing 
ip ...
netmask ...
As &#039;IP&#039; is redundant (same as the input field right at the top) and the netmask is &quot;only&quot; the numerical display of the bitmask, I&#039;d like to put in an idea:

Make the lower part (Subnet Calculation) sortable so that anyone can change the order of the rows as he whishes.

Or:

Pls hardcode &#039;hostmin&#039; and &#039;hostmax&#039; as the first two display lines if suggestion 1.) is too complex. :-)

Anyway:
Many thanks for your App!

Regards
Holger</description>
		<content:encoded><![CDATA[<p>Just got Subnet Calc (lite).<br />
Really lean and nice program! Cool!</p>
<p>I have a small request:<br />
In the lower part the first two datalines are showing<br />
ip &#8230;<br />
netmask &#8230;<br />
As &#8216;IP&#8217; is redundant (same as the input field right at the top) and the netmask is &#8220;only&#8221; the numerical display of the bitmask, I&#8217;d like to put in an idea:</p>
<p>Make the lower part (Subnet Calculation) sortable so that anyone can change the order of the rows as he whishes.</p>
<p>Or:</p>
<p>Pls hardcode &#8216;hostmin&#8217; and &#8216;hostmax&#8217; as the first two display lines if suggestion 1.) is too complex. <img src='http://iphone.galloway.me.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Anyway:<br />
Many thanks for your App!</p>
<p>Regards<br />
Holger</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-1/#comment-771</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Fri, 26 Feb 2010 01:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-771</guid>
		<description>@Florian - The NSString is an object, the NSInteger isn&#039;t - it&#039;s an int. This might be why you&#039;re seeing the difference. It does seem odd though that it&#039;s working in one app and not the other :-S. Could you share any more code with us at all?

One thing I&#039;d suggest is to check that you&#039;re not releasing the NSString too many times. Perhaps even change that property to (nonatomic, copy) to make it copy the value you set rather than retaining the one you pass in.</description>
		<content:encoded><![CDATA[<p>@Florian &#8211; The NSString is an object, the NSInteger isn&#8217;t &#8211; it&#8217;s an int. This might be why you&#8217;re seeing the difference. It does seem odd though that it&#8217;s working in one app and not the other :-S. Could you share any more code with us at all?</p>
<p>One thing I&#8217;d suggest is to check that you&#8217;re not releasing the NSString too many times. Perhaps even change that property to (nonatomic, copy) to make it copy the value you set rather than retaining the one you pass in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Singleton Classes by Florian Wagner</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/comment-page-1/#comment-770</link>
		<dc:creator>Florian Wagner</dc:creator>
		<pubDate>Fri, 26 Feb 2010 01:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=137#comment-770</guid>
		<description>Hey folks! I used exactly the same singleton pattern as statet above and got an NSString ( NSString *dbPath; ) and an NSInteger test;
with 

@property (nonatomic, retain) NSString *dbPath;
@property (nonatomic, readwrite) NSInteger test;

The String should keep my database path. Running the dbPath function and setting it with self.dbPath and the self.test works fine but when I access the singleton class from a view controller my set integer value is present but the NSString seems to have already been released =&gt; It shows an &quot;Out of scope&quot; 

Any suggestions? Do you need more information? Anybody with the same error? The thing is I am using EXACTLY the same SingletonClass in another application and the string and integer values are stored and accessable without any problems...</description>
		<content:encoded><![CDATA[<p>Hey folks! I used exactly the same singleton pattern as statet above and got an NSString ( NSString *dbPath; ) and an NSInteger test;<br />
with </p>
<p>@property (nonatomic, retain) NSString *dbPath;<br />
@property (nonatomic, readwrite) NSInteger test;</p>
<p>The String should keep my database path. Running the dbPath function and setting it with self.dbPath and the self.test works fine but when I access the singleton class from a view controller my set integer value is present but the NSString seems to have already been released =&gt; It shows an &#8220;Out of scope&#8221; </p>
<p>Any suggestions? Do you need more information? Anybody with the same error? The thing is I am using EXACTLY the same SingletonClass in another application and the string and integer values are stored and accessable without any problems&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ldr 12-bit displacement out of range by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/2009/12/ldr-12-bit-displacement-out-of-range/comment-page-1/#comment-763</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Wed, 24 Feb 2010 14:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=274#comment-763</guid>
		<description>@yasirr - I don&#039;t really want to go into depth about what I&#039;m trying to link against - it&#039;s largely irrelevant anyway.

I really suggest that everyone files a bug report and then maybe things will happen Apple&#039;s end to fix it.</description>
		<content:encoded><![CDATA[<p>@yasirr &#8211; I don&#8217;t really want to go into depth about what I&#8217;m trying to link against &#8211; it&#8217;s largely irrelevant anyway.</p>
<p>I really suggest that everyone files a bug report and then maybe things will happen Apple&#8217;s end to fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ldr 12-bit displacement out of range by yasirr</title>
		<link>http://iphone.galloway.me.uk/2009/12/ldr-12-bit-displacement-out-of-range/comment-page-1/#comment-762</link>
		<dc:creator>yasirr</dc:creator>
		<pubDate>Wed, 24 Feb 2010 13:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=274#comment-762</guid>
		<description>thnx for a very fine prompt reply Galloway. can we discuss what we both are basically want to do and this public forum i am not familiar with her policy .. ok i just start if admin allow me i will proceed, i am on mencoder&#039;s x264 .a files to produce a video out of images stream, my problem is when i link .a files which are pretty dependent to each other so linking order i can predict is what causing all mess in my project</description>
		<content:encoded><![CDATA[<p>thnx for a very fine prompt reply Galloway. can we discuss what we both are basically want to do and this public forum i am not familiar with her policy .. ok i just start if admin allow me i will proceed, i am on mencoder&#8217;s x264 .a files to produce a video out of images stream, my problem is when i link .a files which are pretty dependent to each other so linking order i can predict is what causing all mess in my project</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ldr 12-bit displacement out of range by Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/2009/12/ldr-12-bit-displacement-out-of-range/comment-page-1/#comment-761</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Wed, 24 Feb 2010 13:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=274#comment-761</guid>
		<description>@yasirr - No real fix found yet AFAIK. Please file a bug report at http://bugreport.apple.com/ - I have and they replied immediately but no fix found yet. If everyone files a bug then maybe they&#039;ll fix it!</description>
		<content:encoded><![CDATA[<p>@yasirr &#8211; No real fix found yet AFAIK. Please file a bug report at <a href="http://bugreport.apple.com/" rel="nofollow">http://bugreport.apple.com/</a> &#8211; I have and they replied immediately but no fix found yet. If everyone files a bug then maybe they&#8217;ll fix it!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
