Yammer just broke my app because they started using JavaScript to set their session cookies. I spent a couple of days finding why the app broke and coding up the solution to this. Here’s how you take care of those pesky script-based cookies.
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.
Supporting multiple screens at Android – Part II
Android’s support for multiple screens across devices is great, but sometimes we need more. Coding screen elements by screen percentage is sometimes the best solution for certain circumstances. TextView and EditView can be resized based on screen percentage as well
Supporting multiple screens at Android
Android’s support for multiple screens across devices is great, but sometimes we need more than the normal support. Coding screen elements by screen percentage is sometimes the best solution for certain circumstances.
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.
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.
Dynamic List – Android Development Tip
When I was starting to recode Speech Timer for Android, I realised two things. One, the android tutorial in their website is too verbose for me. I need to read too many documents to get what I need. Second, the default Views of Android are not providing me what my application needs. For this blog entry, I would like to discus about dynamic list generation.
Bringing Asynchronous Core Data documents to OS X
Core Data now officially supports concurrency and I/O in background threads since OS X 10.7 and iOS 5. In the same release, Apple also brought the document architecture to iOS that leverages this new capability of Core Data. However OS X didn’t get the same level of multicore love. In this post, I’ll show you how to create a multi-core supporting document architecture application for OS X.
Behold the Holy Array!
The holy array — like the holy swiss cheese — is an array that’s full of holes. Sometimes they’re called sparse arrays. You can use this kind of arrays instead of dictionaries to save some memory when you know that you’ll only be using small nonnegative integer as keys.
Git Client to Manage Remote Repositories on an iPad?
An iPad is the mobile computer of choice for casual computing. How about making quick fixes or other tasks to your git repository? Sure you can do that from an iPad – if using git on the command line is your thing. GUI lovers doesn’t have this luxury. Yet.
News Anchor for Mac OS X 2.4.6 Beta 3
Apparently enabling garbage collection in News Anchor 2.4.6 Beta 1 did more harm than good. Thus I’m releasing News Anchor 2.4.6 Beta 3 that fixes the issue.
Wrapping C-Style Callbacks with Blocks
Elegantly handle C-style callbacks with Objective-C blocks. Reduce clutter, improve readability, and a really cool way of wrapping those clunky callback style that’s more than 20 years old!