Objective-C Singleton Pattern

The Singleton pattern in Objective-C is a great way of creating a global single-instance of an object, and we do see them in abundance even within Apple’s own SDK, as Luke Redpath identifies: [NSUserDefaults standardUserDefaults] Even accessing AppDelegate, you can access properties: Objective-C (anAppDelegate*)[[UIApplication sharedApplication] delegate] 1 (anAppDelegate*)[[UIApplication sharedApplication] delegate]   There are a few articles on the web on how to create such...

read more

Objective-C 101: Difference between #import and @class

A 101 note but just in case this bit of information has eluded some, I thought I’d explain the difference between importing a class and referring to a class with forward referral. Working with an interface class, you get all the goodness of the inherited classes, right from the top with NSObject and down the hierarchy. If you mention a class that doesnt follow that chain, you will need to import it explicitly. When working with forward referral, such as referring to @class User, you tell your interface header file that they are class names only, rather than import their interface...

read more

Melbourne Cocoaheads talk on CouchDB programming for iOS

Chaise Hocking presents his experiences with Couch DB on iOS About CouchDB: http://wiki.apache.org/couchdb/Introduction Github Repo: https://github.com/couchbaselabs/CouchCocoa

read more

Helping Your Clients Build an Effective Mobile Strategy

It can be a challenge convincing clients to add new strategies to their existing Web presence. In a perfect world, a client would simply say, “You’re the expert. You know what’s best. Do whatever needs to be done to make it happen!” But, unfortunately, it just doesn’t work like that. Granted, we shouldn’t expect smart business managers to implement every new thing just because we tell them it’s a good idea. That wouldn’t be cost effective. But what if you know in your gut that the future of a client’s business may be at stake? With Google executives saying things...

read more

Why Mountain Lion is the last Mac X Cat

Courtesy of xkcd.com

read more
Page 1 of 1012345...10...Last »