<?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: Read and Write User Preferences</title>
	<atom:link href="http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html</link>
	<description>iOS and Objective-C Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Sat, 19 May 2012 05:15:17 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: John Muchow</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-69283</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Wed, 04 Apr 2012 23:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-69283</guid>
		<description>Good call Alex, looks like this got messed up during copy/paste from a project. I&#039;ve updated the code example. Thanks.</description>
		<content:encoded><![CDATA[<p>Good call Alex, looks like this got messed up during copy/paste from a project. I&#8217;ve updated the code example. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-69282</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 04 Apr 2012 23:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-69282</guid>
		<description>Shouldn&#039;t this code:

  if ([[NSUserDefaults standardUserDefaults] integerForKey:@&quot;startupTab&quot;] == 0

be:

  if ([[NSUserDefaults standardUserDefaults] integerForKey:@&quot;startupTab&quot;] != 0

not equal to 0 so then that means if it is defined return the saved value and otherwise return the default...??</description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t this code:</p>
<p>  if ([[NSUserDefaults standardUserDefaults] integerForKey:@&#8221;startupTab&#8221;] == 0</p>
<p>be:</p>
<p>  if ([[NSUserDefaults standardUserDefaults] integerForKey:@&#8221;startupTab&#8221;] != 0</p>
<p>not equal to 0 so then that means if it is defined return the saved value and otherwise return the default&#8230;??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Di Pasquale</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-52830</link>
		<dc:creator>Matt Di Pasquale</dc:creator>
		<pubDate>Tue, 14 Jun 2011 21:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-52830</guid>
		<description>Objects stored by your app with NSUserDefaults (or Core Data, etc.) will not be deleted if a user upgrades to a newer version of your app. But, they will be deleted if the user deletes your app from their device.</description>
		<content:encoded><![CDATA[<p>Objects stored by your app with NSUserDefaults (or Core Data, etc.) will not be deleted if a user upgrades to a newer version of your app. But, they will be deleted if the user deletes your app from their device.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-3873</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Mon, 06 Jul 2009 02:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-3873</guid>
		<description>It&#039;s my understanding that NSUserDefaults will be saved across updates to an application. 

Can anyone point to a specific document to confirm?</description>
		<content:encoded><![CDATA[<p>It&#8217;s my understanding that NSUserDefaults will be saved across updates to an application. </p>
<p>Can anyone point to a specific document to confirm?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-3872</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Mon, 06 Jul 2009 02:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-3872</guid>
		<description>If I deploy something to the AppStore and use this method to save, for example the top scores of my game and later I put out a new version of the game, will the users lose their scores by installing the new version?</description>
		<content:encoded><![CDATA[<p>If I deploy something to the AppStore and use this method to save, for example the top scores of my game and later I put out a new version of the game, will the users lose their scores by installing the new version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodney</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-150</link>
		<dc:creator>Rodney</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-150</guid>
		<description>Its also worth mentioning that if you in combination with NSCoder you can save even complex data types in the user defaults, not just primitive key-value types.  This can be very handy when trying to keep track of a user session so that you can &quot;restore&quot; it if the app is abruptly exited.</description>
		<content:encoded><![CDATA[<p>Its also worth mentioning that if you in combination with NSCoder you can save even complex data types in the user defaults, not just primitive key-value types.  This can be very handy when trying to keep track of a user session so that you can &#8220;restore&#8221; it if the app is abruptly exited.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinknoiz</title>
		<link>http://MobileDeveloperTips.com/cocoa/read-and-write-user-preferences.html#comment-148</link>
		<dc:creator>pinknoiz</dc:creator>
		<pubDate>Mon, 15 Dec 2008 22:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1256#comment-148</guid>
		<description>You can combine this with the plist based Settings Bundles to do some useful things. For example, I have a toggle switch that will reset the data for our app _once_. The setting is checked at startup and then forced to false.

I read somewhere that the defaults get saved periodically, but found that it was best to use [[NSUserDefaults standardUserDefaults] synchronize] to make sure they indeed got flushed.</description>
		<content:encoded><![CDATA[<p>You can combine this with the plist based Settings Bundles to do some useful things. For example, I have a toggle switch that will reset the data for our app _once_. The setting is checked at startup and then forced to false.</p>
<p>I read somewhere that the defaults get saved periodically, but found that it was best to use [[NSUserDefaults standardUserDefaults] synchronize] to make sure they indeed got flushed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

