<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bithaus &#187; Source</title>
	<atom:link href="http://bithaus.com/category/source/feed/" rel="self" type="application/rss+xml" />
	<link>http://bithaus.com</link>
	<description>Doin' teh do.</description>
	<lastBuildDate>Sat, 04 Feb 2012 02:43:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Those stinkin&#8217; NewApplication menu items.</title>
		<link>http://bithaus.com/2007/01/18/those-stinkin-newapplication-menu-items/</link>
		<comments>http://bithaus.com/2007/01/18/those-stinkin-newapplication-menu-items/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 06:30:50 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/2007/01/18/those-stinkin-newapplication-menu-items/</guid>
		<description><![CDATA[I feel pretty bad.. it&#8217;s been a long time since I&#8217;ve posted. I had such good intentions about doing this regularly, didn&#8217;t quite keep that up. To allay my guilt, here&#8217;s something (I think is) useful. Why can&#8217;t I just have some kind of substitution token for my App name in my menus? It would [...]]]></description>
			<content:encoded><![CDATA[<p>I feel pretty bad.. it&#8217;s been a long time since I&#8217;ve posted. I had such good intentions about doing this regularly, didn&#8217;t quite keep that up. To allay my guilt, here&#8217;s something (I think is) useful.</p>
<p>Why can&#8217;t I just have some kind of substitution token for my App name in my menus? It would be so nice if this was just handled for you. Or even just use preprocessor macros. Or something so I don&#8217;t have to build things programmatically.</p>
<p>I&#8217;m working on a project which produces various targets, why would I want a separate MainMenu.nib for each target, when except for the App name they are the same (or at least nearly so).</p>
<p>So here&#8217;s what I did in my AppController&#8217;s AwakeFromNib:</p>
<blockquote style="font-size: 10px"><p><code></p>
<p>NSEnumerator *menuEnumerator = [[[NSApp mainMenu] itemArray] objectEnumerator];<br />
id menuItem;<br />
   while (menuItem = [menuEnumerator nextObject]) {<br />
     if ([menuItem hasSubmenu]) {<br />
       NSEnumerator *subMenuEnumerator = [[[menuItem submenu] itemArray] objectEnumerator];<br />
       id subMenuItem;<br />
       while (subMenuItem = [subMenuEnumerator nextObject]) {<br />
         NSString *menuTitle = [subMenuItem title];<br />
         [subMenuItem setTitle:[[menuTitle <br />
             componentsSeparatedByString:@"NewApplication"]<br />
             componentsJoinedByString:[[NSProcessInfo processInfo] processName]]];<br />
       }<br />
     }<br />
   }<br />
</code></p></blockquote>
<p>Maybe you&#8217;ll find a use for it somewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2007/01/18/those-stinkin-newapplication-menu-items/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Now even more Stylish!</title>
		<link>http://bithaus.com/2006/11/15/now-even-more-stylish/</link>
		<comments>http://bithaus.com/2006/11/15/now-even-more-stylish/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 22:06:56 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/2006/11/15/now-even-more-stylish/</guid>
		<description><![CDATA[(Alright, I found something that was broken that I had overlooked in my implementation. Thanks to Matt Gemmell for helping me resolve the error of my ways.) StyledWindow now plays properly with Toolbars. Download]]></description>
			<content:encoded><![CDATA[<p><i>(Alright, I found something that was broken that I had overlooked in my implementation. Thanks to <a href="http://mattgemmell.com/">Matt Gemmell</a> for helping me resolve the error of my ways.)</i></p>
<p>StyledWindow now plays properly with Toolbars.</p>
<p><a href="/downloads/StyledWindow.zip">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/15/now-even-more-stylish/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A smattering of Pixie dust.</title>
		<link>http://bithaus.com/2006/11/12/a-smattering-of-pixie-dust/</link>
		<comments>http://bithaus.com/2006/11/12/a-smattering-of-pixie-dust/#comments</comments>
		<pubDate>Sun, 12 Nov 2006 20:14:35 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/2006/11/12/a-smattering-of-pixie-dust/</guid>
		<description><![CDATA[Pixie is a great tool. If you&#8217;re interested in using StyledWindow to recreate existing Polished Metal implementations here are some values for you. iWeb: [styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]]; [styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]]; [styledWindow setBorderEdgeColor: [NSColor colorWithDeviceWhite:0.2510 alpha:1.0]]; iMovie HD &#038; iDVD: [styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]]; [styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]]; [styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2549 alpha:1.0]]; iPhoto: [styledWindow [...]]]></description>
			<content:encoded><![CDATA[<p>Pixie is a great tool. If you&#8217;re interested in using <a title="StyledWindow" href="/2006/11/04/stylish-windows/">StyledWindow</a> to recreate existing Polished Metal implementations here are some values for you.</p>
<p>iWeb:</p>
<blockquote style="font-size: 10px"><p><code>		[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];<br />
		[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];<br />
		[styledWindow setBorderEdgeColor: [NSColor colorWithDeviceWhite:0.2510 alpha:1.0]];<br />
	</code>
</p></blockquote>
<p>iMovie HD &#038; iDVD:</p>
<blockquote style="font-size: 10px"><p><code>		[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];<br />
		[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];<br />
		[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2549 alpha:1.0]];<br />
	</code>
</p></blockquote>
<p>iPhoto:</p>
<blockquote style="font-size: 10px"><p><code>		[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];<br />
		[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];<br />
		[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.4039 alpha:1.0]];<br />
	</code>
</p></blockquote>
<p>iTunes 7:</p>
<blockquote style="font-size: 10px"><p><code>		[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7725 alpha:1.0]];<br />
		[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5882 alpha:1.0]];<br />
		[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2510 alpha:1.0]];<br />
	</code>
</p></blockquote>
<p>You can use the Demo App to figure out the heights of the borders.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/12/a-smattering-of-pixie-dust/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Archive Xcode Project Folder Workflow</title>
		<link>http://bithaus.com/2006/11/10/archive-xcode-project-folder-workflow/</link>
		<comments>http://bithaus.com/2006/11/10/archive-xcode-project-folder-workflow/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 02:24:06 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/2006/11/10/archive-xcode-project-folder-workflow/</guid>
		<description><![CDATA[An Automator Workflow to make your Xcode Projects (or anything else I guess) ready to share. Install at ~/Library/Workflows/Applications/Finder/ (create the path if needed). Download Update: rev&#8217;d to remove .DS_Store files and &#8220;build&#8221; (in addition to &#8220;Build&#8221;) folders]]></description>
			<content:encoded><![CDATA[<p>An Automator Workflow to make your Xcode Projects (or anything else I guess) ready to share. Install at ~/Library/Workflows/Applications/Finder/ (create the path if needed).</p>
<p><a href="/downloads/Archive_Xcode.workflow.zip"><img align="middle" style="border: medium none ; text-decoration: none" src="/wp-content/uploads/2006/11/zipfile.png" /> Download</a></p>
<blockquote><p>Update: rev&#8217;d to remove .DS_Store files and  &#8220;build&#8221; (in addition to &#8220;Build&#8221;) folders</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/10/archive-xcode-project-folder-workflow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NSImage Reflection</title>
		<link>http://bithaus.com/2006/11/05/nsimage-reflection/</link>
		<comments>http://bithaus.com/2006/11/05/nsimage-reflection/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 15:42:36 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/2006/11/05/nsimage-reflection/</guid>
		<description><![CDATA[A Category on NSImage to produce a reflection, with the ability to set how much of the reflection is shown. Download Note: it uses Chad Weider&#8217;s extremely convenient CTGradient class.]]></description>
			<content:encoded><![CDATA[<p>A Category on NSImage to produce a reflection, with the ability to set how much of the reflection is shown.</p>
<p><a href="/wp-content/uploads/2006/11/flected.png" title="Demo App screenshot" rel="lightbox"><img src="/wp-content/uploads/2006/11/flectedthumb1.jpg" /></a></p>
<p><a href="/downloads/Flected.zip"><img src="/wp-content/uploads/2006/11/zipfile.png" style="text-decoration: none; border:none;" align="middle" /> Download</a></p>
<p><em>Note: it uses Chad Weider&#8217;s extremely convenient <a href="http://blog.oofn.net/projects/misc/">CTGradient class</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/05/nsimage-reflection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stylish Windows</title>
		<link>http://bithaus.com/2006/11/04/stylish-windows/</link>
		<comments>http://bithaus.com/2006/11/04/stylish-windows/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 00:18:04 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/?p=5</guid>
		<description><![CDATA[NSWindow. Very flexible stuff. It&#8217;s used *everywhere*. I mean it, everywhere, look for yourself, hit cmd-shift-4 and then press the spacebar. Move that camera icon around, over Desktop icons, Dock items, Menu Extras, etc, etc. Everywhere. Pretty versatile. But most of us still just use what IB provides. Matt Gemmell released TunesWindow a while back [...]]]></description>
			<content:encoded><![CDATA[<p>NSWindow. Very flexible stuff. It&#8217;s used *everywhere*. I mean it, everywhere, look for yourself, hit cmd-shift-4 and then press the spacebar. Move that camera icon around, over Desktop icons, Dock items, Menu Extras, etc, etc. Everywhere.</p>
<p>Pretty versatile.</p>
<p>But most of us still just use what IB provides. <a href="http://mattgemmell.com/">Matt Gemmell</a> released <a href="http://mattgemmell.com/source/">TunesWindow</a> a while back and it provided a great solution to making something a bit more unique. I just thought it could be even more flexible so I built StyledWindow based on it. (thanks Matt!)</p>
<p>And since John Gruber delivered the obituary on the Apple HIG at C4 (and everyone is talking about it: <a href="http://www.red-sweater.com/blog/215/build-your-own-damn-hig">Daniel Jalkut</a>, <a href="http://www.zathras.de/angelweb/blog-build-your-own-damn-hig.htm">Uli Kusterer</a>, <a href="http://mjtsai.com/blog/2006/10/23/build-your-own-damn-hig/">Michael Tsai</a>, <a href="http://theococoa.com/document.page/326">Scott Stevenson</a>, et al), it seems time to release this so everyone can now define their own HIG.</p>
<p><a href="/2006/11/04/styledwindow/">Download and Enjoy.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/04/stylish-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>StyledWindow</title>
		<link>http://bithaus.com/2006/11/04/styledwindow/</link>
		<comments>http://bithaus.com/2006/11/04/styledwindow/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 00:16:21 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://bithaus.com/?p=6</guid>
		<description><![CDATA[A flexible NSWindow subclass. Download Note: it uses Chad Weider&#8217;s extremely convenient CTGradient class. Update: Default values are now set to something closer to Apple&#8217;s Polished Metal Window. Added some comments to AppController.m awakeFromNib method &#8211; look there to see how to set things up.]]></description>
			<content:encoded><![CDATA[<p>A flexible NSWindow subclass.<br />
<a href="/wp-content/uploads/2006/11/styledwindow.png" rel="lightbox"><img src="/wp-content/uploads/2006/11/styledwindowthumb1.jpg" /></a><br />
<a href="/downloads/StyledWindow.zip"><img align="middle" style="border: medium none ; text-decoration: none" src="/wp-content/uploads/2006/11/zipfile.png" /> Download</a></p>
<p><em>Note: it uses Chad Weider&#8217;s extremely convenient <a href="http://blog.oofn.net/projects/misc/">CTGradient class</a>.</em></p>
<blockquote><p>Update: Default values are now set to something closer to Apple&#8217;s Polished Metal Window. Added some comments to AppController.m awakeFromNib method &#8211; look there to see how to set things up.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/04/styledwindow/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.178 seconds -->

