<?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>The Daydream Blog &#187; Development</title>
	<atom:link href="http://www.daytimesoftware.com/blog/category/development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.daytimesoftware.com/blog</link>
	<description>The official blog of DayTime Software</description>
	<lastBuildDate>Mon, 29 Nov 2010 20:29:47 +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>Using Git With FogBugz for Local Repositories</title>
		<link>http://www.daytimesoftware.com/blog/2009/10/using-git-with-fogbugz-for-local-repositories</link>
		<comments>http://www.daytimesoftware.com/blog/2009/10/using-git-with-fogbugz-for-local-repositories#comments</comments>
		<pubDate>Thu, 22 Oct 2009 21:02:22 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iPhone Software]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[FogBugz]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=118</guid>
		<description><![CDATA[Note that this article is intended for developers and may not be of interest to a wider audience If you, like me, have migrated from using Subversion to Git, you may be missing the ability to link commits with FogBugz cases. I have adapted the Subversion integration post commit hook to work with Git. It [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note that this article is intended for developers and may not be of interest to a wider audience</em></p>
<p>If you, like me, have migrated from using Subversion to Git, you may be missing the ability to link commits with FogBugz cases.  I have adapted the Subversion integration post commit hook to work with Git.</p>
<p>It should be noted that integration with repositories hosted on GitHub can be found by <a href="http://github.com/johnreilly/github-fogbugz" title="GitHub FogBugz Integration Source Code">clicking on this link, to appropriately enough, GitHub</a> (via <a href="http://www.fogcreek.com/FogBugz/blog/post/Git-Integration.aspx" title="GitHub FogBugz Git Integration Blog Post">a blog post on FogBugz</a>).  These instructions are for use with local repositories.</p>
<p>I have simply taken the Subverson integration script, <a href="http://www.fogcreek.com/FogBugz/docs/70/topics/sourcecontrol/setup/Subversion.html">that is available at this link on the FogBugz website</a> and adapted it for use with Git.</p>
<p>To use, follow the instructions below:</p>
<ul>
<li>Install Perl in the unlikely situation that it is not already installed on your system</li>
<li>Install wget.  On Mac OS X, you can install via MacPorts by simply typing <code>sudo port install wget</code> in a Terminal window.</li>
<li>Download post-commit and logBugDataGit.pl by <a href="http://www.daytimesoftware.com/downloads/GitFogBugz.zip">clicking on this link to GitFogBugz.zip</a></li>
<li>Unzip the archive and copy the two scripts to your [Path To Project]/.git/hooks directory and make sure they are both executable</li>
<li>Edit logBugDataGit.pl as follows:
<ul>
<li>If you are using the free FogBugz version set <code>$BUGZ_URL_FINAL</code> to <code>https://yourdomain.fogbugz.com</code> and set <code>$IS_TRIAL</code> to 1.</li>
<li>If you host your own FogBugz installation, set <code>$BUGZ_SERVER</code> to your domain <strong>without</strong> http:// and set <code>$IS_TRIAL</code> to 0.</li>
</ul>
</li>
</ul>
<p>That&#8217;s it, there is not step 6!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2009/10/using-git-with-fogbugz-for-local-repositories/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Accessible Mac-verse</title>
		<link>http://www.daytimesoftware.com/blog/2009/03/the-accessible-mac-verse</link>
		<comments>http://www.daytimesoftware.com/blog/2009/03/the-accessible-mac-verse#comments</comments>
		<pubDate>Wed, 18 Mar 2009 11:39:27 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Differencia]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=93</guid>
		<description><![CDATA[In a recent post, Martin Pilkington of M Cubed Software challenged Mac developers to make their apps accessible by the end of 2009. I think this is an excellent suggestion and I will take up the challenge for Differencia. In Martin&#8217;s post and the comments there are some links to great resources to get going [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://www.mcubedsw.com/blog/index.php?/site/comments/the_accessible_mac/" alt="The Accessible Mac blog post" title="The Accessible Mac">recent post</a>, <a href="http://twitter.com/pilky" alt="Martin Pilkington on Twitter" title="Martin Pilkington on Twitter">Martin Pilkington</a> of <a href="http://mcubedsw.com/" alt="M Cubed Software" title="M Cubed Software">M Cubed Software</a> challenged Mac developers to make their apps accessible by the end of 2009.  I think this is an excellent suggestion and I will take up the challenge for Differencia.</p>
<p>In Martin&#8217;s post and the comments there are some links to great resources to get going with accessibility:</p>
<p><a href="http://developer.apple.com/ue/accessibility/index.html" alt="Apple's Accessibility Developer Page" title="Apple's Accessibility Developer Page">Apple&#8217;s Accessibility Developer Page.</a></p>
<p><a href="http://atmac.org/resources/links/" alt="Assistive Technology for the Mac Resource" title="Assistive Technology for the Mac">Assistive Technology for the Mac Resources</a></p>
<p><a href="http://atmac.org/resources/links/" alt="Assistive Ware Videos" title="Assistive Ware Videos">Assistive Ware Videos</a></p>
<p>At WWDC &#8217;06 I went to the Accessibility session and it was the best Hands-On sesssion I&#8217;ve been to at WWDC.  The 2006 Session video does not seem to be available any more, but the 2008 session can be found from the link below.  It requires access to ADC on iTunes, you may need to log into ADC on iTunes first, or simply look for session 326.</p>
<p><a href="https://deimos.apple.com/WebObjects/Core.woa/BrowsePrivately/adc.apple.com.1670040666.01688079091.1912327026?i=1460052777" alt="WWDC 2008 Application Accessibility Session Video on iTunes" title="Application Accessibility">WWDC &#8217;08 &#8211; Session 326 &#8211; Application Accessibility</a></p>
<p>The 2006 session had an excellent sample application, Dicey, that takes you through stages of increased accessibility. It can be found here:</p>
<p><a href="http://developer.apple.com/samplecode/Dicey/" alt="Dicey Sample Code on Apple Developer Site" title="Dicey Sample Code">Dicey Sample Code</a></p>
<p>However I would like to extend Martin&#8217;s challenge.  Most independent Mac software developers sell their products exclusively via the web.  Therefore for their software to be fully accessible, Mac developers need to make their websites accessible as well.</p>
<p>Information on this can be found at W3C, the web&#8217;s standards body, and elsewhere:</p>
<p><a href="http://www.w3.org/WAI/gettingstarted/" alt="W3C's Accessibility Initiative" title="W3C's Accessibility Initiative">W3C&#8217;s Accesibility Initiative</a></p>
<p><a href="http://diveintoaccessibility.org/" alt="Dive Into Accessibilty" title="Dive Into Accessibility">Dive Into Accessibility Guide</a> </p>
<p>I would call on all Mac developers to take up the Mac Accessibility Challenge.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2009/03/the-accessible-mac-verse/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unlearning Cocoa</title>
		<link>http://www.daytimesoftware.com/blog/2008/07/unlearning-cocoa</link>
		<comments>http://www.daytimesoftware.com/blog/2008/07/unlearning-cocoa#comments</comments>
		<pubDate>Wed, 09 Jul 2008 10:37:39 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=87</guid>
		<description><![CDATA[Note this article is intended for developers and may be of limited interest to our wider client base. Kevin Hoffman has given a critique of the now infamous criticism of iPhone development. (Another Microsoft Developer Falls Victim to Framework Myopia [The .NET Addict's Blog]) The key points in Kevin&#8217;s post are his explanation of how [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note this article is intended for developers and may be of limited interest to our wider client base.</em></p>
<p>Kevin Hoffman has given a critique of the now infamous criticism of iPhone development.  (<a href="http://dotnetaddict.dotnetdevelopersjournal.com/iphone_sdk_negative_response.htm">Another Microsoft Developer Falls Victim to Framework Myopia [The .NET Addict's Blog]</a>)</p>
<p>The key points in Kevin&#8217;s post are his explanation of how experienced Windows developers should handle their migration to Mac or iPhone development.  It reminded me of a post I&#8217;ve been planning to write for a long time that most easily be summarised as:</p>
<p>To learn Cocoa, you must un-learn your past development experience.</p>
<p>Cocoa assumes an MVC paradigm.  Interface Builder and NIB&#8217;s are very weird compared to other approaches.  The frameworks are heavily designed for sub-classing to create your own behaviour, rather than having lots of settings to tweak behaviour.</p>
<p>Every time you try to learn a new aspect of Cocoa, you find yourself struggling to do something that feels like the &#8220;right way&#8221;.  A few days later you come out with 3 lines of code that feel completely natural but felt incredibly painful to reach.  You will be met with countless, &#8220;aaah, that&#8217;s how it works and it makes complete sense&#8221; moments.  You spend days wondering why this bit of Cocoa is so gnarly, and seemingly unintuitive, until you reach another moment of understanding.</p>
<p>People often say that Cocoa has a steep learning curve.  It does not.  It has a steep un-learning curve, followed by a gentle re-learning curve.  Getting yourself out of your previous development mind set can make the whole experience a lot more pleasant.</p>
<p>What is disappointing is that none of the documentation or tutorials spend much time comparing and contrasting with other approaches, that would make the process of unlearning easier. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2008/07/unlearning-cocoa/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Next MacMacDev Edinburgh</title>
		<link>http://www.daytimesoftware.com/blog/2008/07/next-macmacdev-edinburgh</link>
		<comments>http://www.daytimesoftware.com/blog/2008/07/next-macmacdev-edinburgh#comments</comments>
		<pubDate>Thu, 03 Jul 2008 21:02:21 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Developers]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=86</guid>
		<description><![CDATA[The next MacMacDev for Edinburgh has been announced for Thursday 10 July 2008, starting at 19:00. The venue is unchanged and is at Baroque, 39-41 Broughton Street, Edinburgh, EH1 3JU. Full details can be found here. There&#8217;s also a new mailing list for the community, full details can be found here. Hope to see you [...]]]></description>
			<content:encoded><![CDATA[<p>The next MacMacDev for Edinburgh has been announced for Thursday 10 July 2008, starting at 19:00.  The venue is unchanged and is at Baroque, 39-41 Broughton Street, Edinburgh, EH1 3JU.  Full details can be found <a href="http://macmacdev.com/2008/07/01/macmacdevs7-edinburgh_baroque/" title="MacMacDev Blog">here</a>.</p>
<p>There&#8217;s also a new mailing list for the community, full details can be found <a href="http://macmacdev.com/2008/07/02/we-have-a-mailing-list/" title="MacMacDev Blog" >here</a>.</p>
<p>Hope to see you there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2008/07/next-macmacdev-edinburgh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cornerstone from Zennaware</title>
		<link>http://www.daytimesoftware.com/blog/2008/07/cornerstone-from-zennaware</link>
		<comments>http://www.daytimesoftware.com/blog/2008/07/cornerstone-from-zennaware#comments</comments>
		<pubDate>Tue, 01 Jul 2008 19:32:00 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[Developers]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=85</guid>
		<description><![CDATA[Note this article is intended for developers and may be of limited interest to our wider client base. Last week saw the release of Cornerstone, a new Subversion GUI client for the Mac from Zennaware. After initial testing, I am quite excited about Cornerstone, as it breaks new ground for Version Control Graphical Clients. Historically, [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note this article is intended for developers and may be of limited interest to our wider client base.</em></p>
<p>Last week saw the release of <a href="http://www.zennaware.com/cornerstone/" title="Cornerstone - Mac Subversion Client">Cornerstone</a>, a new Subversion GUI client for the Mac from <a href="http://www.zennaware.com/" title="Zennaware Website">Zennaware</a>.  After initial testing, I am quite excited about Cornerstone, as it breaks new ground for Version Control Graphical Clients.  </p>
<p>Historically, graphical version control clients have simply put a GUI on top of the command line tools.  It is disappointing that there is little or no thought given to the problems that developers want to solve with their source control systems.  Developers of these applications seem to completely forget the issues they themselves face.</p>
<p>Cornerstone&#8217;s most impressive feature and one that I have discussed extensively in the #macsb IRC channel is it&#8217;s timeline.  You can easily go forward and back through the history of a file and see changes for each subsequent version.  Whilst this falls short of my wishes for a source control timeline, it is a massive step in the right direction.</p>
<p>Cornerstone&#8217;s source code diff tool looks great, but still cannot identify when a method has simply moved within a file.  If you change the method as well as move it, which is quite common, the changes are not clearly highlighted in Cornerstone, Xcode or any other diff tool I have come across on the Mac.  I had already decided that a future version of <a href="http://daytimesoftware.com/differencia.html" title="Differencia - Mac Diff Tool">Differencia will act as a source-code aware diff tool</a>.</p>
<p>Whilst there are a long list of feature requests I have already for Cornerstone, after only a day&#8217;s use, it is a huge relief to find that someone is taking source control seriously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2008/07/cornerstone-from-zennaware/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacMacDev WWDC / San Francisco</title>
		<link>http://www.daytimesoftware.com/blog/2008/05/macmacdev-wwdc-san-francisco</link>
		<comments>http://www.daytimesoftware.com/blog/2008/05/macmacdev-wwdc-san-francisco#comments</comments>
		<pubDate>Wed, 28 May 2008 10:14:44 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Edinburgh]]></category>
		<category><![CDATA[Glasgow]]></category>
		<category><![CDATA[Meetings]]></category>
		<category><![CDATA[San Francisco]]></category>
		<category><![CDATA[Scotland]]></category>
		<category><![CDATA[WWDC]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=75</guid>
		<description><![CDATA[There is a meeting scheduled for Scottish based Mac developers attending WWDC. Initial plans are for meeting at the Thirsty Bear on Sunday, 8th June at 6PM. Exact timings may change. If you are interested, please email david at macmacdev dot com. Further details and updates can be found at the MacMacDev website. There are [...]]]></description>
			<content:encoded><![CDATA[<p>There is a meeting scheduled for Scottish based Mac developers attending WWDC.  Initial plans are for meeting at the <a href="http://macmacdev.com/2008/05/26/macmacdevs4-san_francisco_thirsty_bear/">Thirsty Bear on Sunday, 8th June at 6PM</a>.  Exact timings may change.</p>
<p>If you are interested, please email david at macmacdev dot com.  Further details and updates can be found at the <a href="http://macmacdev.com/">MacMacDev website</a>. </p>
<p>There are already 8-9 attendees, so a healthy number.  More the merrier, so please let David know if you would like to come along too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2008/05/macmacdev-wwdc-san-francisco/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacMacDev</title>
		<link>http://www.daytimesoftware.com/blog/2008/05/macmacdev</link>
		<comments>http://www.daytimesoftware.com/blog/2008/05/macmacdev#comments</comments>
		<pubDate>Wed, 21 May 2008 17:11:02 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Edinburgh]]></category>
		<category><![CDATA[Scotland]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/?p=73</guid>
		<description><![CDATA[I had the great privilege to meet a number of Scottish based Mac software developers at the first Edinburgh MacMacDev meeting. The group was set up by head Cocoa cheer leader, David Masters of PyrusMalus. there have been a couple of meetings so far in Glasgow and one in Edinburgh. Since moving to Scotland 18 [...]]]></description>
			<content:encoded><![CDATA[<p>I had the great privilege to meet a number of Scottish based Mac software developers at the first Edinburgh <a href="http://macmacdev.com/">MacMacDev</a> meeting.  The group was set up by <a href="http://www.cocoacheerleaders.com/">head Cocoa cheer leader</a>, David Masters of <a href="http://www.pyrusmalus.com/">PyrusMalus</a>. there have been a couple of meetings so far in Glasgow and one in Edinburgh.</p>
<p>Since moving to Scotland 18 months ago, I have been surprised by the number of Mac developers based here.  I had heard of the <a href="http://en.wikipedia.org/wiki/Silicon_glen">Silicon Glen</a>, the idea that there are a number of tech related companies in Scotland, but it was a great surprise to find so many Mac developers here.  It makes a huge difference to have a local community, as well as a strong online one.</p>
<p>Glasgow meetings are planned for the 4th / last Thursday of every month, with the <a href="http://macmacdev.com/2008/05/21/macmacdevs3-glasgow_offshore/">next one on 29th May</a>.</p>
<p>Edinburgh meetings are planned for the 2nd Thursday of every month, with the next meeting planned for June 12th.  Whilst this is during Apple&#8217;s developer conference, WWDC, there should still be a good attendance.  Exact venue is yet to be confirmed, and the best place to keep an eye on things is the <a href="http://macmacdev.com/">MacMacDev Website</a> </p>
<p>There are also plans afoot to have a MacMacDev meet up at WWDC, details yet to be confirmed, which will be a good opportunity of East and West coasters to meet up to compare notes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2008/05/macmacdev/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Differencia: Code Acknowledgements</title>
		<link>http://www.daytimesoftware.com/blog/2007/11/differencia-code-acknowledgements</link>
		<comments>http://www.daytimesoftware.com/blog/2007/11/differencia-code-acknowledgements#comments</comments>
		<pubDate>Sun, 18 Nov 2007 09:39:43 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Acknowledgements]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Differencia]]></category>
		<category><![CDATA[Sample Code]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/2007/11/differencia-code-acknowledgements</guid>
		<description><![CDATA[One great thing about being a Mac developer at the moment, is that there is a lot of free-to-use, free-to-distribute software that helps you do common things that Apple&#8217;s developer frameworks oddly do not provide. So there is quite a lot of third party code in Differencia. The developers are largely unaware of the use [...]]]></description>
			<content:encoded><![CDATA[<p>One great thing about being a Mac developer at the moment, is that there is a lot of free-to-use, free-to-distribute software that helps you do common things that Apple&#8217;s developer frameworks oddly do not provide.  So there is quite a lot of third party code in Differencia.  The developers are largely unaware of the use of their work in Differencia, or in many other products.  I would like to say a big Thankyou to all of those developers whose work has unwittingly gone into Differencia.  As well as nestling credits in the About Box, I would like to thank them again here:</p>
<p class="p1"><a href="http://homepage.mac.com/kenferry/software.html"><strong>Ken Ferry</strong></a></p>
<p class="p2">KFSplitView</p>
<p class="p1"><a href="http://mattgemmell.com/source"><strong>Matt Gemmell</strong></a></p>
<p class="p1">NSColor+ContrastingLabelExtensions</p>
<p class="p2">TunesWindow</p>
<p class="p1"><a href="http://eschatologist.net/bDistributed.com/index.html"><strong>Chris Hanson</strong></a></p>
<p class="p2">BDAlias</p>
<p class="p1"><a href="http://red-sweater.com"><strong>Daniel Jakult, Red Sweater Software</strong></a></p>
<p class="p2">NSTableView+RSAutosaving</p>
<p class="p1"><a href="http://andymatuschak.org/"><strong>Andy Matuschak</strong></a></p>
<p class="p1">AMRollOverButton</p>
<p class="p2">Help Toolkit</p>
<p class="p1"><strong>Andy Matuschak / Tom Harrington</strong></p>
<p class="p2"><a href="http://code.google.com/p/sparkleplus/">Sparkle+</a></p>
<p class="p1"><a href="http://www.seanpatrickobrien.com/2006/09/28/ilifecontrols-10/"><strong>Sean Patrick O&#8217;Brien</strong></a></p>
<p class="p2">iLifeControls</p>
<p class="p1"><a href="http://belkadan.com/generictoolbar/"><strong>Jordy Rose, Belkadan Software</strong></a></p>
<p class="p2">GenericToolbar</p>
<p class="p1"><a href="http://shiira.jp/hmblkappkit/en.html"><strong>Shiira Project</strong></a></p>
<p class="p2">HMBlkAppKit</p>
<p class="p1"><a href="http://blog.oofn.net/projects/misc/"><strong>Chad Weider</strong></a></p>
<p class="p2">CTGradient</p>
<p>Thanks to all of them and I hope that I can contribute back to the Mac developer community in the same way in the not so distant future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2007/11/differencia-code-acknowledgements/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suicidal Code Redux</title>
		<link>http://www.daytimesoftware.com/blog/2007/10/suicidal-code-redux</link>
		<comments>http://www.daytimesoftware.com/blog/2007/10/suicidal-code-redux#comments</comments>
		<pubDate>Wed, 24 Oct 2007 15:57:46 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Sample Code]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/2007/10/suicidal-code-redux</guid>
		<description><![CDATA[Back in July, Daniel Jakult posted some sample code for some suicidal code that prevents your application from running beyond a fixed period after it was compiled. Ideal for a Beta copies of your software that you don&#8217;t want used beyond a certain period, without having to deal with licences. For example the Beta release [...]]]></description>
			<content:encoded><![CDATA[<p>Back in July, Daniel Jakult <a href="http://www.red-sweater.com/blog/371/suicidal-code">posted some sample code for some suicidal code</a> that prevents your application from running beyond a fixed period after it was compiled.  Ideal for a Beta copies of your software that you don&#8217;t want used beyond a certain period, without having to deal with licences.  For example the Beta release of Differencia that was released last week.</p>
<p>In the comments for Daniel&#8217;s post it was pointed out that the sample code was not internationalised and might cause an issue when run outside of English speaking countries.  Of the suggested solutions in the comments, one, I suspect, exhibits the same issue and the other is very complex.  </p>
<p>I discussed a potential solution with Michal Bencur (benko23) in the #macsb IRC channel a couple of weeks ago and I&#8217;ve posted some sample code to resolve the locale issue below. </p>
<p>The gcc documentation states that __DATE__ is in the format &#8220;MMM dd yyyy&#8221;, but I have no idea whether gcc will localise this when compiling in non English locales, but if it does, just replace &#8220;en_US&#8221; with the locale you are using when compiling.</p>
<p>The code is also Tiger only, as it uses a 10_4 behaviour date formatter for proper locale handling.</p>
<p>
<pre style="font-size:1.1em;">
// Based on original code by Daniel Jakult, based on an idea from Brian Cooke.
#ifdef BETA  // 4 week expiration
#define EXPIREAFTERDAYS 28
#endif
</pre>
</p>
<p>
<pre style="font-size:1.1em;">#if EXPIREAFTERDAYS
NSString* compileDateString = [NSString stringWithUTF8String:__DATE__];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]
	autorelease]];
[dateFormatter setDateFormat:@"MMM dd yyyy"];
NSDate *compileDate = [dateFormatter dateFromString:compileDateString];
[dateFormatter release];
NSDate *expireDate = [compileDate addTimeInterval:(60*60*24* EXPIREAFTERDAYS)];
</pre>
</p>
<p>
<pre style="font-size:1.1em;">if ([expireDate earlierDate:[NSDate date]] == expireDate)
{
	// Run an alert or whatever
</pre>
</p>
<p>
<pre style="font-size:1.1em;">
	// Quit!
	[NSApp terminate:self];
}
#endif
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2007/10/suicidal-code-redux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK: Woops</title>
		<link>http://www.daytimesoftware.com/blog/2007/10/iphone-sdk-woops</link>
		<comments>http://www.daytimesoftware.com/blog/2007/10/iphone-sdk-woops#comments</comments>
		<pubDate>Fri, 19 Oct 2007 09:49:14 +0000</pubDate>
		<dc:creator>Sanjay Samani</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.daytimesoftware.com/blog/2007/10/iphone-sdk-woops</guid>
		<description><![CDATA[Earlier in the week I suggested that developers should get over the lack of a &#8220;proper&#8221; iPhone SDK. Looking at Apple&#8217;s Web Apps directory, I felt that a lot of developers were getting on with things. Of course the next day, Apple announced that there would be a proper iPhone SDK in Feb. This does [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier in the week I suggested that developers should get over the lack of a &#8220;proper&#8221; iPhone SDK.  Looking at Apple&#8217;s Web Apps directory, I felt that a lot of developers were getting on with things.  </p>
<p>Of course the next day, Apple announced that there would be a <a href="http://arstechnica.com/news.ars/post/20071017-apple-to-open-iphone-ipod-touch-to-third-party-developers-in-early-2008.html">proper iPhone SDK in Feb</a>.  This does highlight Apple&#8217;s hubris at claiming that Web tools were a full SDK as I had previously claimed.  </p>
<p>More importantly along with the <a href="http://arstechnica.com/journals/apple.ars/2007/10/16/jobs-confirms-itunes-plus-price-drop-across-the-board">iTunes Plus price reductions</a>, it does appear that Apple is responding to the wave of criticism that has come its way over the last few months.  With a bit of luck, Apple will also open up iPhone ring tones as part of that response.</p>
<p>Back the the iPhone SDK, my biggest concern is that I will fall into the same trap I did with my previous smart phone.  Installing all manner of &#8220;cool&#8221; apps that I never use and which clutter up the limited resources on my phone.  When I get an iPhone, I&#8217;ll be interested to see whether I prefer using web based tools to full blown, native, apps.  Of the shareware that I currently use on my Mac, a GTD solution is the only app that I feel that I would want on my iPhone.  Of course I&#8217;d happily do without the YouTube and Stocks apps as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daytimesoftware.com/blog/2007/10/iphone-sdk-woops/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

