// archives

Cocoa

This tag is associated with 18 posts
cloud-sync.png

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.

mail.jpg

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

00-iOS-OS-X.png

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.

hollywood-work-fx.jpg

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.

BSWebTracker-sequence-diagram.png

Bringing Web Analytics for your Desktop App

Are you yearning for Flurry Analytics or Google Mobile Analytics for your Mac OS X application? Seek no more as your day is saved!

Web-Cookie-Monster.jpg

Handling Cookies Created in JavaScript for your Custom Cookie Jar

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.

Cocoa-Coffee-Beans-Database.jpeg

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.

JSON-Coffee-FX.jpg

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.

Web-Cookie-Monster.jpg

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-toilet.jpg

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.

stationary-small.jpg

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.

multi-folders.jpg

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.

post-imagescore-data-context-use.png

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 […]

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.

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 […]

Free Updates!

Learn how to grow your indie business while keeping your day job.

Categories

Archives

Keep updated!

Don't miss out on new articles!