News Anchor 2.4.6 Beta 1 is out and fixes a compatibility issue with a future version of Mac OS X.
HackerSpace.sg: iOS Developer Meetup
Coverage on the iOS Dev Scout event on March 2012 with my commentaries. The primary topics were iOS in-app purchasing and test-driven development.
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 apps that uses Core Data as it’s backing store.
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 data.
Lion’s sandboxing deadline may have been pushed back, but News Anchor came through and met the original date. Bringing News Anchor into the sandbox cost me one of the two precious DTS tickets in my quota, due to the difficulties in getting the PubSub framework to function in the environment. I’d figured I ought to write this out to contribute back to the Mac Developer community.
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,…
Core Data and Multithreading
Core Data isn’t thread safe and Apple recommends to use multiple contexts instead to handle concurrency. However Apple seems to have forgotten that on Mac OS X, there are hooks like the undo manager that can cause havoc in multi-threaded Core Data applications, even each thread having its own context.
Building mp4v2 library for Leopard compatibility
How to build mp4v2 for Leopard compatibility. 1. Download mp4v2-r355 from the MP4v2 project. 2. Setup these environment variables: export MACOSX_DEPLOYMENT_TARGET=10.5export CFLAGS=”-isysroot /Developer/SDKs/MacOSX10.5.sdk”export CXXFLAGS=”-isysroot /Developer/SDKs/MacOSX10.5.sdk” 3. Run configure with the following command: (refer to mp4v2 issue 58) ./configure –disable-gch –enable-ub=ppc,i386,x86_64 4. Go to the “.libs” directory that contains the compiled mp4v2 library and adjust the…
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…
Saving Quartz Composition for distribution
Today I learned a very important lesson when saving Quartz Composer composition files for use in other machines: always save the composition as a flat file. Even though according to Wikipedia that quartz composer version 4.0 saves virtual patches in the composition as a fallback, the composition may not run properly if it isn’t saved…
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.