<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>I fix computers and write Mac software in my spare time.</description><title>Brian Toth</title><generator>Tumblr (3.0; @briantoth)</generator><link>http://blog.briantoth.com/</link><item><title>PostCheck 2.2</title><description>&lt;a href="http://briantoth.com/postcheck/"&gt;PostCheck 2.2&lt;/a&gt;: &lt;p&gt;&lt;ul&gt;&lt;li&gt;Stopped trying to merge Google results with the USPS results. It was proving to be too unreliable. Now, only USPS results are used to standardize addresses (like in PostCheck version 1). If an address cannot by found in the USPS database, possible suggestions are still provided.&lt;/li&gt;
&lt;li&gt;Added preferences for controlling street and city abbreviations. You can individually unabbreviate USPS standard street abbreviations. You can also apply your own custom unabbreviations for city names.&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description><link>http://blog.briantoth.com/post/18881861016</link><guid>http://blog.briantoth.com/post/18881861016</guid><pubDate>Tue, 06 Mar 2012 21:44:15 -0500</pubDate></item><item><title>Google Maps Plugin 2.8</title><description>&lt;a href="http://briantoth.com/gmp/"&gt;Google Maps Plugin 2.8&lt;/a&gt;: &lt;p&gt;My first Google Maps Plugin update in three years. I had to implement a work-around for a bug in Apple’s Address Book Framework in Lion. The same work-around I did for PostCheck 2.0.3. Now the directions window should select the correct address that you clicked on.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/16668040793</link><guid>http://blog.briantoth.com/post/16668040793</guid><pubDate>Sat, 28 Jan 2012 20:23:29 -0500</pubDate></item><item><title>PostCheck 2.1.2</title><description>&lt;a href="http://briantoth.com/postcheck/download"&gt;PostCheck 2.1.2&lt;/a&gt;</description><link>http://blog.briantoth.com/post/12347167912</link><guid>http://blog.briantoth.com/post/12347167912</guid><pubDate>Fri, 04 Nov 2011 20:25:12 -0400</pubDate></item><item><title>PostCheck 2.1.1</title><description>&lt;a href="http://briantoth.com/postcheck/"&gt;PostCheck 2.1.1&lt;/a&gt;</description><link>http://blog.briantoth.com/post/11993799145</link><guid>http://blog.briantoth.com/post/11993799145</guid><pubDate>Thu, 27 Oct 2011 12:17:31 -0400</pubDate></item><item><title>Steve Jobs.</title><description>&lt;p&gt;I could spend a long time writing all the Apple-related stories that have impacted my life. It&amp;#8217;s amazing to think about how much would be different if Steve hadn&amp;#8217;t accomplished all he has.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/11088473591</link><guid>http://blog.briantoth.com/post/11088473591</guid><pubDate>Wed, 05 Oct 2011 23:09:56 -0400</pubDate></item><item><title>PostCheck 2.1</title><description>&lt;a href="http://briantoth.com/postcheck/download"&gt;PostCheck 2.1&lt;/a&gt;: &lt;p&gt;Includes a proper (I hope) bug fix for the city name issues. Also includes the previously mentioned new feature where PostCheck will suggest possible matches for your address if there’s more than one possible. I felt this warranted a more noticeable version number.&lt;/p&gt;
&lt;p&gt;Please report any bugs, they’re very helpful in tracking down special cases with certain addresses. And thanks to everyone that has submitted addresses for testing.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/11039361976</link><guid>http://blog.briantoth.com/post/11039361976</guid><pubDate>Tue, 04 Oct 2011 19:48:02 -0400</pubDate></item><item><title>I know there’s a few bugs with city abbreviations in the...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lsirgyQmyM1qzn84vo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I know there’s a few bugs with city abbreviations in the current version of PostCheck. The upcoming update should take care of that issue once and for all. I’ve also implemented a new feature…&lt;/p&gt;</description><link>http://blog.briantoth.com/post/11006095164</link><guid>http://blog.briantoth.com/post/11006095164</guid><pubDate>Mon, 03 Oct 2011 22:12:33 -0400</pubDate></item><item><title>PostCheck 2.0.6 Put Back Up</title><description>&lt;p&gt;2.0.7 didn&amp;#8217;t accomplish what I wanted, I found a copy &amp;amp; paste error that would lead to it&amp;#8217;s own problems. Fix coming…&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10944578977</link><guid>http://blog.briantoth.com/post/10944578977</guid><pubDate>Sun, 02 Oct 2011 14:54:35 -0400</pubDate></item><item><title>PostCheck 2.0.7</title><description>&lt;a href="http://briantoth.com/postcheck/download"&gt;PostCheck 2.0.7&lt;/a&gt;: &lt;p&gt;PostCheck 2.0.4 didn’t completely fix the issue with “neighborhood” names showing up instead of proper city names. This should take care of that. (Please report if it doesn’t.)&lt;/p&gt;
&lt;p&gt;Sorry for the back-to-back bug fixes. I’d rather get the fixes out as soon as possible as they come in.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10939936525</link><guid>http://blog.briantoth.com/post/10939936525</guid><pubDate>Sun, 02 Oct 2011 13:10:32 -0400</pubDate></item><item><title>PostCheck 2.0.6</title><description>&lt;a href="http://briantoth.com/postcheck/download"&gt;PostCheck 2.0.6&lt;/a&gt;</description><link>http://blog.briantoth.com/post/10867953602</link><guid>http://blog.briantoth.com/post/10867953602</guid><pubDate>Fri, 30 Sep 2011 20:43:04 -0400</pubDate></item><item><title>PostCheck 2.0.5</title><description>&lt;a href="http://briantoth.com/postcheck/download"&gt;PostCheck 2.0.5&lt;/a&gt;: &lt;p&gt;The main fix with this is improving performance for group lookups. Tested successfully with 12,000+ contacts. Before, it was just way too slow to be useful.&lt;/p&gt;
&lt;p&gt;The technical reason behind this is that I was using NSCollectionView, which has horrible performance. For this version I’ve replaced it with a classic NSTableView, which performs great.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10292754486</link><guid>http://blog.briantoth.com/post/10292754486</guid><pubDate>Fri, 16 Sep 2011 19:21:55 -0400</pubDate></item><item><title>PostCheck 2.0.4 Universal Binary</title><description>&lt;p&gt;I re-uploaded PostCheck 2.0.4 as a universal binary (Power PC, Intel, 32/64-bit).&lt;/p&gt;
&lt;p&gt;The problem turned out to be that I upgraded my older Mac to Xcode 3.2.6 yesterday and it wiped out all my PowerPC settings. (Great job there Apple.) I found enough references to the problem through Google to know it wasn&amp;#8217;t just my mistake.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10101053652</link><guid>http://blog.briantoth.com/post/10101053652</guid><pubDate>Sun, 11 Sep 2011 18:28:58 -0400</pubDate></item><item><title>Where'd My Universal Binary Go?</title><description>&lt;p&gt;If anyone is actually using PostCheck 2+ on a PowerPC Mac, I&amp;#8217;m sorry, my Xcode somehow stopped building PowerPC universal binaries. I just realized that the last two updates to PostCheck are Intel-only. This will be fixed as soon as I can figure out what&amp;#8217;s going on…&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10099455550</link><guid>http://blog.briantoth.com/post/10099455550</guid><pubDate>Sun, 11 Sep 2011 17:53:24 -0400</pubDate></item><item><title>PostCheck 2.0.4</title><description>&lt;a href="http://briantoth.com/postcheck/download"&gt;PostCheck 2.0.4&lt;/a&gt;: &lt;p&gt;I hate to have to put up an update so soon after I already announced another one. But a PostCheck customer brought this to my attention.&lt;/p&gt;
&lt;p&gt;In certain cases, PostCheck might apply a “neighborhood” name to an address instead of the city name . For example: “Ohio City” instead of “Cleveland”, which is not a valid USPS address. This update fixes this.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10087499978</link><guid>http://blog.briantoth.com/post/10087499978</guid><pubDate>Sun, 11 Sep 2011 13:18:56 -0400</pubDate></item><item><title>PostCheck 2.0.3</title><description>&lt;a href="http://briantoth.com/postcheck/"&gt;PostCheck 2.0.3&lt;/a&gt;: &lt;p&gt;Implemented a work-around for a bug in Apple’s Address Book in Mac OS X Lion.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10046153605</link><guid>http://blog.briantoth.com/post/10046153605</guid><pubDate>Sat, 10 Sep 2011 15:15:59 -0400</pubDate></item><item><title>Lion Address Book Bug in Detail</title><description>&lt;p&gt;I was able to track down the root of the problem that I reported on yesterday with PostCheck and Mac OS X Lion. (I would imagine it could affect any Address Book plugins.) This bug is only present in Lion (at least as of 10.7.1), all previous versions of OS X behave as expected.&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s how to reproduce the problem:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Create an Address Book record with one or more addresses.&lt;/li&gt;
&lt;li&gt;Quit Address Book.&lt;/li&gt;
&lt;li&gt;Open Address Book to that same record.&lt;/li&gt;
&lt;li&gt;Add a new address.&lt;/li&gt;
&lt;li&gt;Use PostCheck on that new address.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;The result is that any previously added addresses will be erased, leaving just the newly added address. (It can be reversed using Address Book&amp;#8217;s undo, luckily.)&lt;/p&gt;
&lt;p&gt;All Apple Address Book plugins get called with this method after a user selects the plugin&amp;#8217;s menu item from the context menu:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;- (void)performActionForPerson:(ABPerson *)person &lt;br/&gt;identifier:(NSString *)identifier&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If I use NSLog() to display the details of &amp;#8220;person&amp;#8221;, in Lion it does not list any of the existing addresses as being part of the record, just the newly added one. In all previous versions of the OS, it properly lists all the addresses.&lt;/p&gt;
&lt;p&gt;The work-around that I came up with is to re-lookup the person from the Address Book database:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NSString *uniqueID = [person uniqueId]; // kABUIDProperty&lt;br/&gt; ABPerson *foundPerson = [[ABAddressBook sharedAddressBook] recordForUniqueId:uniqueID];&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;#8220;foundPerson&amp;#8221; will contain all the addresses, unlike the &amp;#8220;person&amp;#8221; object that is passed to the plugin to begin with. I don&amp;#8217;t understand why this works this way but I&amp;#8217;m glad it does until the bug is fixed.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10046033671</link><guid>http://blog.briantoth.com/post/10046033671</guid><pubDate>Sat, 10 Sep 2011 15:13:01 -0400</pubDate></item><item><title>PostCheck &amp; Lion Bug</title><description>&lt;p&gt;I&amp;#8217;ve run across a reproducible bug with PostCheck 2.0.2 and Lion. If you add a new address to a contact that already has an address and then use PostCheck to check the new address, Address Book will erase the previously existing address for some reason. I cannot reproduce this in older versions of Mac OS X.&lt;/p&gt;
&lt;p&gt;If this happens, you can use Address Book&amp;#8217;s undo to revert the change. The temporary work-around is to add the address and quit Address Book so that it saves the changes. Then you can use PostCheck.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m looking into the problem now to see if it&amp;#8217;s something that I can control.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/10018881003</link><guid>http://blog.briantoth.com/post/10018881003</guid><pubDate>Fri, 09 Sep 2011 22:13:38 -0400</pubDate></item><item><title>Returning from WebScriptObject evaluateWebScript:</title><description>&lt;p&gt;I don&amp;#8217;t know if this is common knowledge, but it took me a while to figure out and I didn&amp;#8217;t find anything obvious about it online.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve been writing an Objective-C (Cocoa) front end for a Javascript API and it involved a lot of two-way communication and passing WebScriptObjects around. (A WebScriptObject just being an Objective-C instance of a Javascript object.)&lt;/p&gt;
&lt;p&gt;Anyway, my &amp;#8220;discovery&amp;#8221; is how to properly return a useful value using evaluateWebScript: instead of always using callWebScriptMethod:withArguments: with pre-made Javascript functions.&lt;/p&gt;
&lt;p&gt;The simplest example is if I want to call evaluateWebScript: to return a WebScriptObject representation of a new Javascript object literal:&lt;/p&gt;
&lt;p&gt;NSString *myObjectDef = @&amp;#8221;{ property1: 10; property2: 12 }&amp;#8221;;&lt;br/&gt; NSString *script = [NSString stringWithFormat:@&amp;#8221;var newObj = %@; newObj;&amp;#8221;, myObjectDef];&lt;/p&gt;
&lt;p&gt;Passing that script to evaluateWebScript: will return the value of &amp;#8220;newObj&amp;#8221; as a WebScriptObject that can be passed to other Javascript functions or inspected with valueForKey:.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/9522984704</link><guid>http://blog.briantoth.com/post/9522984704</guid><pubDate>Sun, 28 Aug 2011 19:46:09 -0400</pubDate></item><item><title>PostCheck 2 is fully Lion compatible. </title><description>&lt;p&gt;PostCheck 2 is fully Lion compatible. &lt;/p&gt;</description><link>http://blog.briantoth.com/post/7846103391</link><guid>http://blog.briantoth.com/post/7846103391</guid><pubDate>Wed, 20 Jul 2011 11:52:08 -0400</pubDate></item><item><title>PostCheck 2.0.2</title><description>&lt;a href="http://briantoth.com/postcheck/download/"&gt;PostCheck 2.0.2&lt;/a&gt;: &lt;p&gt;Fixed a bug where PostCheck may return Michigan (and corresponding ZIP Code) for addresses in Minnesota. I’m not aware of this bug affecting any other states at this time.&lt;/p&gt;
&lt;p&gt;Turns out this bug was reproducible in PostCheck 1.9.2 as well. If ‘Minnesota’ were spelled out as the state - under certain conditions ‘Michigan’ would be returned as the new state. I’m guessing that the USPS saw the ‘Mi’ at the beginning of ‘Minnesota’ and just ignored the rest in cases where there was a matching street address. (There’s lot of little issues like this with the USPS APIs.)&lt;/p&gt;
&lt;p&gt;I hope this bug didn’t affect too many users or cause too many problems.&lt;/p&gt;</description><link>http://blog.briantoth.com/post/6561265877</link><guid>http://blog.briantoth.com/post/6561265877</guid><pubDate>Wed, 15 Jun 2011 15:13:00 -0400</pubDate></item></channel></rss>

