Blog

Tag Archives: Mac

Easy Delayed Messaging using NSProxy and NSInvocation

Sometimes it’s necessary to perform an action some time in the future, whether it’s disabling a button for a certain time interval after it’s pressed, performing an animation after a short wait, or triggering a reload of some data. NSTimer is great for that purpose, as well as repeatedly performing actions, but it’s most convenient [...]
Also tagged , , | Leave a comment

iPhone debugging tip: Breaking on exceptions and reading their content

Just a quick one: This may be obvious to many devs, but it’s worth noting. One common and useful debugging technique is breaking on exceptions, so that you can see exactly where in your app’s flow a breakpoint occurs. This can be done by adding -[NSException raise] and objc_exception_throw to your breakpoints list. Once an [...]
Also tagged , , , | Leave a comment

iPhone/Mac animation for custom classes: Property animation for more than just CALayer

An Objective-C class that provides similar functionality to CABasicAnimation, but works on any object.

Also tagged , , , , , | Leave a comment

Reginald RegEx explorer

With a desperate need to debug a lengthy regular expression destined for use with the excellent RegexKitLite library, I have quickly put together a Mac OS X application. Reginald is a kindly old gentleman devoted to assisting you with those tricky regular expressions. Provide some sample input, and your regular expression, and Reginald will provide [...]
Also tagged , , , | Leave a comment

OS X service to filter selected text through a shell command

The UNIX shell provides a host of extremely useful utilities for modifying text. This Automator service makes all of them available for filtering text in all OS X applications.

Also tagged , , | 11 Comments

The Making of Talkie: Multi-interface broadcasting and multicast

Part 2 Talkie is my newest product, a Walkie Talkie for iPhone and Mac. In Part 1 of this series, I wrote about basic broadcasting. This works fine with one network device, but it’s worth discussing how to send through all devices, so you can communicate with others connected via, say, Ethernet and WiFi simultaneously. [...]
Also tagged , , , , , , , , , | Leave a comment

The Making of Talkie: Broadcasting

Part 1 Talkie is my newest product, the result of a collaboration with a good designer friend, Tim Churchward, who did the user interface. Talkie is a little different from many of the other walkie talkie applications on the App Store (aside from the fact that much of it was written by me from our [...]
Also tagged , , , , , , , , | 3 Comments

DIY Twitter image hosting

Twitter doesn’t yet come with its own inline image support, so we tend to be limited to using image hosting services, and linking to them with short URLs. So, services like Tweetpic host the image, and we direct traffic to them in return. Thinking it’s better to keep things in the family, and take better [...]
Also tagged , , | 2 Comments