<?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; Cocoa</title>
	<atom:link href="http://bithaus.com/category/cocoa/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>Establish some momentum</title>
		<link>http://bithaus.com/2006/11/10/establish-some-momentum/</link>
		<comments>http://bithaus.com/2006/11/10/establish-some-momentum/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 02:25:24 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://bithaus.com/2006/11/10/establish-some-momentum/</guid>
		<description><![CDATA[Being new to this whole blogging thing&#8230; I&#8217;m going to try make frequent posts. Attempt to establish the habit of putting stuff up or at least writing about putting stuff up. Those that know me know that talking about stuff isn&#8217;t usually a problem, so I&#8217;ll just need to work on the discipline of writing [...]]]></description>
			<content:encoded><![CDATA[<p>Being new to this whole blogging thing&#8230; I&#8217;m going to try make frequent posts. Attempt to establish the habit of putting stuff up or at least writing about putting stuff up.</p>
<p>Those that know me know that talking about stuff isn&#8217;t usually a problem, so I&#8217;ll just need to work on the discipline of writing about stuff.</p>
<p>But this will really just be a post about posting&#8230; not quite. I forgot I had something to share.</p>
<p>And a little workflow you might find useful. I got annoyed about the number of steps required to get an Xcode project posted, so I built an Automater workflow: &#8220;Archive Xcode Project&#8221;.</p>
<p>Just put it in ~/Library/Workflows/Applications/Finder/ (create the path if needed) and you can control-click on an Xcode Project folder and get a nice clean archive ready for distribution. It strips .svn dirs, Build dirs and [username].* foo from your projects and then zips. Nice clean archives for sharing with friends and family. </p>
<p><a href="/2006/11/10/archive-xcode-project-folder-workflow/">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/10/establish-some-momentum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reflections Upon a Blog</title>
		<link>http://bithaus.com/2006/11/05/reflections-upon-a-blog/</link>
		<comments>http://bithaus.com/2006/11/05/reflections-upon-a-blog/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 15:45:21 +0000</pubDate>
		<dc:creator>ganyard</dc:creator>
				<category><![CDATA[Cocoa]]></category>

		<guid isPermaLink="false">http://bithaus.com/2006/11/05/reflections-upon-a-blog/</guid>
		<description><![CDATA[Ok, that&#8217;s pretty cheap. Everyone loves the glossy table top reflections in iChat&#8217;s video conferencing. Right? Ok, you have to at least admit that you like showing it to your Windows using associates. So here&#8217;s my contribution to virtualizing real life: a category on NSImage that provides you with a reflection of an image. And [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, that&#8217;s pretty cheap.</p>
<p>Everyone loves the glossy table top reflections in iChat&#8217;s video conferencing. Right? Ok, you have to at least admit that you like showing it to your Windows using associates.</p>
<p>So here&#8217;s my contribution to virtualizing real life: a category on NSImage that provides you with a reflection of an image. And it comes with a spiffy Demo App so you can fine tune it to get just the right amount of reflection without having to recompile every time.</p>
<p><a href="/2006/11/05/nsimage-reflection/">Download and Enjoy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bithaus.com/2006/11/05/reflections-upon-a-blog/feed/</wfw:commentRss>
		<slash:comments>0</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>
	</channel>
</rss>

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

