<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Portable WebnoteHappy?</title>
	<link>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/</link>
	<description>design. business. mac love.</description>
	<pubDate>Thu, 20 Nov 2008 11:51:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: MacHappy &#187; Blog Archive &#187; Mac OS X browser numbers</title>
		<link>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4670</link>
		<dc:creator>MacHappy &#187; Blog Archive &#187; Mac OS X browser numbers</dc:creator>
		<pubDate>Wed, 18 Oct 2006 19:22:53 +0000</pubDate>
		<guid>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4670</guid>
		<description>[...] Blog     &#171; Portable WebnoteHappy? [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Blog     &laquo; Portable WebnoteHappy? [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Wight</title>
		<link>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4662</link>
		<dc:creator>Jonathan Wight</dc:creator>
		<pubDate>Wed, 18 Oct 2006 13:52:29 +0000</pubDate>
		<guid>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4662</guid>
		<description>You misunderstood. I dont think either of the ways I listed would require redoing any NSUserDefaults based code. NSUserDefaults would just be using a different HOME directory or just have more defaults dictionaries attached to it.</description>
		<content:encoded><![CDATA[<p>You misunderstood. I dont think either of the ways I listed would require redoing any NSUserDefaults based code. NSUserDefaults would just be using a different HOME directory or just have more defaults dictionaries attached to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4649</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Wed, 18 Oct 2006 06:15:16 +0000</pubDate>
		<guid>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4649</guid>
		<description>Joshua: You can get the path of an application via [[NSWorkspace sharedWorkspace] fullPathForApplication:@"YourApplication"] and parse from there.  Or perhaps [[NSWorkspace sharedWorkspace] activeApplication] and then look at the @"NSApplicationPath" key.

Jonathan: Well the upside of making a drop-in replacement (not sure if that's possible, but maybe with dynamic linking) for NSUserDefaults is that you could also use it for bindings and possibly not have to redo any of your code.  Just recompile.  Also if it detected that you were in normal, non-portable mode, you would just delegate to the regular NSUserDefaults.

Well it'll be interesting to see if any progress is made on this.  For applications where preferences don't change too much, this might not be a big deal as well.  But I'll try to contact Scott.</description>
		<content:encoded><![CDATA[<p>Joshua: You can get the path of an application via [[NSWorkspace sharedWorkspace] fullPathForApplication:@&#8221;YourApplication&#8221;] and parse from there.  Or perhaps [[NSWorkspace sharedWorkspace] activeApplication] and then look at the @&#8221;NSApplicationPath&#8221; key.</p>
<p>Jonathan: Well the upside of making a drop-in replacement (not sure if that&#8217;s possible, but maybe with dynamic linking) for NSUserDefaults is that you could also use it for bindings and possibly not have to redo any of your code.  Just recompile.  Also if it detected that you were in normal, non-portable mode, you would just delegate to the regular NSUserDefaults.</p>
<p>Well it&#8217;ll be interesting to see if any progress is made on this.  For applications where preferences don&#8217;t change too much, this might not be a big deal as well.  But I&#8217;ll try to contact Scott.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Wight</title>
		<link>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4641</link>
		<dc:creator>Jonathan Wight</dc:creator>
		<pubDate>Tue, 17 Oct 2006 21:27:23 +0000</pubDate>
		<guid>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4641</guid>
		<description>The simple solution might be to look for a folder called "Library" at the same level as the application.

Instead of making an open source replacement for NSUserDefaults you might be able to get away with redefining the value of HOME in the processes environment.

Failing that - you could possibly use a persistent/volitile dictionary in the standard NSUserDefaults. That would actually be quite flexible.</description>
		<content:encoded><![CDATA[<p>The simple solution might be to look for a folder called &#8220;Library&#8221; at the same level as the application.</p>
<p>Instead of making an open source replacement for NSUserDefaults you might be able to get away with redefining the value of HOME in the processes environment.</p>
<p>Failing that - you could possibly use a persistent/volitile dictionary in the standard NSUserDefaults. That would actually be quite flexible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Lock</title>
		<link>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4631</link>
		<dc:creator>Joshua Lock</dc:creator>
		<pubDate>Tue, 17 Oct 2006 09:06:00 +0000</pubDate>
		<guid>http://www.happyapps.com/blog/2006/10/portable-webnotehappy/#comment-4631</guid>
		<description>An open source and portable NSUserDefaults sounds great!

Is there any way that you could detect the volume that the application is launched from and use a different path for volumes other than the one the OS is booting from?

For example if launching the application from the Mac OS X boot volume it would use ~/Library/Preferences/ and if not it would use /Preferences/ ??

I look forward to seeing some work on this! :)</description>
		<content:encoded><![CDATA[<p>An open source and portable NSUserDefaults sounds great!</p>
<p>Is there any way that you could detect the volume that the application is launched from and use a different path for volumes other than the one the OS is booting from?</p>
<p>For example if launching the application from the Mac OS X boot volume it would use ~/Library/Preferences/ and if not it would use /Preferences/ ??</p>
<p>I look forward to seeing some work on this! :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
