// archives


This tag is associated with 23 posts

Pull-to-refresh that goes both ways

Turbocharged OS X scroll view component that supports “pull-to-refresh” on at the top and bottom edges – perfect for a timeline display view component.


Introduction to Cocoa: NSLinguisticTagger in NSBrief podcast #72

Get your Cocoa app to recognize verbs, nouns, or even people and company names using NSLinguisticTagger. Listen to what other cool stuff that this nifty yet lesser known class can do for you.


One NSWindow handling multiple NSDocument instances

Cocoa’s document architecture envisions that a window should only handle one document. However library-type applications may need one window to handle multiple documents so that the user can easily switch between libraries without restarting the application. Here’s how you can hack AppKit so that a single window handle multiple documents.


Multithreading with Core Data on iOS

The pervasive use of blocks and new nested context in iOS 5 and Mac OS X Lion paved the path to a whole new way of multithreading. Apple has lifted yet another barrier to use Core Data for applications that needs to run on multiple threads. This article teach you how to effectively write multi-threaded […]

News Anchor 2 Icon

Sandboxing the PubSub framework

Are you having trouble sandboxing your app for the Mac App Store? I did and here is my experience on sandboxing News Anchor that uses Apple’s PubSub framework and didn’t play well with the sandbox. This cost me a DTS ticket and you will want to pay attention if your app also consumes RSS/ATOM feed […]

Google Reader API for Cocoa

Today I have just made the world a slightly better place. Better for Mac developers, that is. That’s because I have made an open-source Google Reader library for Cocoa. You can download the library from Github: GReader-Cocoa and hopefully you’ll like it enough to contribute patches. Why yet another Google API library? Two reasons why, […]


Supporting Leopard while developing in Snow Leopard

Apparently Apple’s Cocoa method availability documentation is not enough to determine whether something will work on an earlier version of Mac OS X. That is, avoiding 10.6-only methods doesn’t ensure that your application will also work flawlessly in 10.5. As a first-time Mac developer programming an application on Snow Leopard that is also targeted for […]

Bad day at the office

Choosing a crash reporting system for Cocoa

Are you writing a Cocoa application for Mac OS X? Then you’ll need a crash reporting back-end for your app. If you’re thinking of hosting your own crash reporting system, here are a few open-source libraries that you can consider.

Native iPhone Development 101

My slides about native iPhone development, presented in Singapore PHP User’s Group meet-up.