Programming Cocoa apps with Swift has it’s many caveats. Many of these are derived from the fact that there are two language runtimes at play, the incumbent Objective-C runtime which is used by system frameworks and the Swift runtime as a newcomer. Here is one hard lesson learned (and workaround) when dealing with state restoration problems in a Swift app.
Integrating iAd with Cocos2D
How to incorporate iAd to your Cocos2D director view.
How to Fix Your Five Year Old Cocos2D Game
Some lessons learned when I upgraded AirKill from Cocos2D 0.8 to 3.0. If your game is on a very old version of Cocos2D, you’ll want to read through this to save you some time.
Have you been using UIAlertView and find it a big hassle just to get a simple Yes/No answer from the user? This could just be the medicine to cure your pain.
Seeding iCloud Core Data Store
Deciding when to pre-populate a Core Data store is a real headache when you need to sync that data store across many devices. However you can learn from my experience and save you the headache that I had to went through.
Introducing the Core Data Controller
Here is a document class replacement for managing your library-style app based on Core Data. All the goodness of NSDocument / UIDocument with just the right functionalities when you don’t need to expose document-management functionality to your users.
Programmatically Sending Rich Text e-mail with Attachments on the Mac
If your users needs a precomposed e-mail with attachments, now you can easily do it on the Mac with a few lines of code
Tips for Architecting Dual-platform OS X / iOS Applications
How to share common code between OS X and iOS and architect your app to dance around each platform’s similarities and differences.
Encoding UIButton Title for State Preservation and Restoration
Supporting state restoration in iOS often requires you to make your app just like a hollywood house where the front porch looks nice but there’s really nothing beyond that. Read more to find out why.
Two Macros to Speed Your Singletons
How to use singletons properly and how to supercharge your singleton writing.
Crazy App Idea: JDBC on Cocoa
Do you know why it’s so hard to gain access to an SQL database from a Mac App? Here’s why and the solution to your database access woes. Warning: it’s slightly off-beat and rad.
Crash-proof your Cocoa-app when consuming JSON!
Is your Cocoa app plagued by “unrecognized selector sent to instance” exceptions when consuming JSON data? Is your app not resilient to minor server-side JSON API changes? Here’s how to fix your JSON woes in your Objective-C project.
Implementing Your Own Cookie Storage
Cocoa stores cookies on its own and this makes it hard to implement a web client that appears as more than one user at the same time to the web server. To do this you’ll need to make your own cookie storage and this article teaches you how.
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.