<?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>BKeeney Briefs &#187; Programming</title>
	<atom:link href="http://www.bkeeneybriefs.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bkeeneybriefs.com</link>
	<description>Software Development Using REAL Studio</description>
	<lastBuildDate>Tue, 07 Feb 2012 02:30:05 +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>Cocoa Tip</title>
		<link>http://www.bkeeneybriefs.com/2011/05/cocoa-tip/</link>
		<comments>http://www.bkeeneybriefs.com/2011/05/cocoa-tip/#comments</comments>
		<pubDate>Fri, 13 May 2011 13:55:38 +0000</pubDate>
		<dc:creator>Bob Keeney</dc:creator>
				<category><![CDATA[Cross Platform]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[REALbasic]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Don't Try This At Home]]></category>
		<category><![CDATA[REAL Studio]]></category>

		<guid isPermaLink="false">http://www.bkeeneybriefs.com/?p=843</guid>
		<description><![CDATA[I&#8217;ve been playing around with Cocoa in Real Studio.  It&#8217;s come a long way in the past couple of releases and I urge you to start testing your apps to find those pesky Cocoa bugs.  Real Software is making a huge effort for the 2011 R2 release to fix as many Cocoa bugs as possible. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with Cocoa in Real Studio.  It&#8217;s come a long way in the past couple of releases and I urge you to start testing your apps to find those pesky Cocoa bugs.  Real Software is making a huge effort for the 2011 R2 release to fix as many Cocoa bugs as possible.  It&#8217;s <em>that</em> close.</p>
<p>Yesterday I ran across a problem where my app was crashing immediately upon startup.  The crash log gave a very odd error message:</p>
<blockquote><p>Dyld Error Message:  Library not loaded: /System/Library/Frameworks/user32.framework/user32</p></blockquote>
<p>Wha?  User32?  That sounds like a Windows library and certainly nothing I&#8217;ve ever seen on Mac OS X.  I actually wrote the &#8216;bug&#8217; up and sent it in via Feedback and then did some more research.  The answer wasn&#8217;t really all that surprising.</p>
<p>I have a lot of old code that I&#8217;ve developed, bought, and found over the years that make it into most of my projects.  It&#8217;s there and I don&#8217;t even think about it.  One of the pieces of code that I bought from someone works cross-platform Mac/Windows and so it has a ton of #if statements.  Things like this:</p>
<blockquote><p>#if targetcarbon then</p>
<p>//Do Mac stuff</p>
<p>#else</p>
<p>//Do Windows stuff</p>
<p>#endif</p></blockquote>
<p>See the problem?  If I wasn&#8217;t making a Carbon application, which Cocoa most definitely is not, it attempts to run the Windows code.  So now the crash log makes total sense.  I suspect that a lot of people will have a similar problem.</p>
<p>Check your projects for compiler switches like this.  If you&#8217;re developing cross-platform applications you&#8217;ll probably have this problem.  In the long run all I did was do a simple global search for #if targetcarbon and replaced it with the target for Mac OS.  That won&#8217;t work for all cases, but it should get you close.</p>
<p>Ideally I would love for the Real Studio compiler to give me a warning for this case but I don&#8217;t think that&#8217;s even possible.  Really, how many libraries are there in the world to know about for each platform?  Impossible I say.  At a minimum, however, I would think that it would be possible to get a better runtime error.  Sort of like how you get error messages if you don&#8217;t have the plugin libraries where the executable expects them (much more of a problem in Windows if you move the Libs directory).</p>
<p>What say you my fellow REALbasic geeks?  Have you tried Cocoa yet with 2011 R1.1?  Any major problems?</p>
            <script type="text/javascript">  linkscolor = "000000";  highlightscolor = "888888";  backgroundcolor = "FFFFFF";  channel = "none";   </script><script type="text/javascript" src="http://www.addmarx.com/dynamicbookmark_compressed.php"></script><span><a onClick="clickDynamic1(this); return false;" href="http://www.addmarx.com"><img style="padding:0px; margin:0px" src="http://www.bkeeneybriefs.com/wp-content/plugins/addmarx/sharebookmarx.png" border="0"></a></span><span style="position:absolute; z-index:1000001; margin-top:24px; margin-left:-127px; visibility:hidden;"><iframe id="addmarx_empty" scrolling="no" frameborder="0"></iframe></span><p class="addmarx_spacer"></p><!-- Please place the above code into your site where you want to have a bookmark/share/publicize link. Please do not change any of the code aside from the link text or image, or else the code may not work properly.  -->                  ]]></content:encoded>
			<wfw:commentRss>http://www.bkeeneybriefs.com/2011/05/cocoa-tip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yeah, Right.  You Can Do It</title>
		<link>http://www.bkeeneybriefs.com/2009/07/yeah-right-you-can-do-it/</link>
		<comments>http://www.bkeeneybriefs.com/2009/07/yeah-right-you-can-do-it/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 23:30:04 +0000</pubDate>
		<dc:creator>Bob Keeney</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[QuickBooks]]></category>
		<category><![CDATA[REALbasic]]></category>

		<guid isPermaLink="false">http://www.bkeeneybriefs.com/?p=384</guid>
		<description><![CDATA[I ran across this post today:  http://blog.bitquabit.com/2009/07/01/one-which-i-call-out-hacker-news/ The basic story is that the author is refuting the claim that StackOverflow.com could be replicated &#8220;easily&#8221;. I think this is an awesome post because it&#8217;s a warning to others and reminder to myself that everything is not as easy as it seems.  Often we look at an [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across this post today:  <a href="http://blog.bitquabit.com/2009/07/01/one-which-i-call-out-hacker-news/" target="_blank">http://blog.bitquabit.com/2009/07/01/one-which-i-call-out-hacker-news/</a> The basic story is that the author is refuting the claim that StackOverflow.com could be replicated &#8220;easily&#8221;.</p>
<p>I think this is an awesome post because it&#8217;s a warning to others and reminder to myself that everything is not as easy as it seems.  Often we look at an application and say, &#8220;I could do that.&#8221;  Yes, you could.  Without a doubt.</p>
<p>Here&#8217;s my advice though:  Take your estimate of weeks and make it months and turn months into years and you&#8217;ll probably be closer to the truth.  Even copying user interface and data structures verbatim I think most people would still have a hard time replicating an existing application quickly.</p>
<p>One project I worked on was a QuickBooks-like accounting application.  On a four person team.  Five days a week.  For FIVE YEARS!  And we had QuickBooks as the blueprint, if you will, for the accounting side of the application.  Guess what?  Even though I&#8217;ve moved on they&#8217;re STILL adding to and modifying the accounting engine.  QuickBooks is a moving target and I wish my old teammates luck in striving for it.</p>
<p>Every now and then someone gets a hair up their rear end and brag that THEY could do REALbasic better than REAL Software (because some bug has really pissed them off).  It&#8217;s quite possible that someone out there is working on an awesome RB clone and someday release it.  But don&#8217;t expect it anytime soon.</p>
<p>The same goes with claims of &#8220;I could easily make the RB IDE do this or that!&#8221;  If it was easy no doubt RS would already have done it.  Let&#8217;s face it, software is often a case of the mistakes of the father now make our lives a living nightmare.  This is not to knock our forefather developers just that what seemed like the best way five or ten years ago is woefully inadequate in today&#8217;s terms and to make it do &#8216;x&#8217; (which seems easy) isn&#8217;t because the infrastructure isn&#8217;t there to do it.  So the whole thing has to be redone and done so you don&#8217;t break backwards compatibility.</p>
<p>Again, sorry for the blog about another persons blog.  I hope you find these discussions helpful and thought provoking.  Thoughts?</p>
            <script type="text/javascript">  linkscolor = "000000";  highlightscolor = "888888";  backgroundcolor = "FFFFFF";  channel = "none";   </script><script type="text/javascript" src="http://www.addmarx.com/dynamicbookmark_compressed.php"></script><span><a onClick="clickDynamic1(this); return false;" href="http://www.addmarx.com"><img style="padding:0px; margin:0px" src="http://www.bkeeneybriefs.com/wp-content/plugins/addmarx/sharebookmarx.png" border="0"></a></span><span style="position:absolute; z-index:1000001; margin-top:24px; margin-left:-127px; visibility:hidden;"><iframe id="addmarx_empty" scrolling="no" frameborder="0"></iframe></span><p class="addmarx_spacer"></p><!-- Please place the above code into your site where you want to have a bookmark/share/publicize link. Please do not change any of the code aside from the link text or image, or else the code may not work properly.  -->                  ]]></content:encoded>
			<wfw:commentRss>http://www.bkeeneybriefs.com/2009/07/yeah-right-you-can-do-it/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

