Archive for December 2009

Ruby on Rails Validations in Objective-C

I’ve uploaded my MMValidation project to Github. It’s an easy way to get Rails-style validations on any subclass of NSObject.
You declare validations like this:

+(void)initialize {
    [Person validatesPresenceOf:@"firstName"];
    [Person validatesPresenceOf:@"lastName"];
}

And check them like this:

if ([myObject valid]) {
    // yay! proceed as planned
} else {
    // handle the validation errors
}

Click here to get it. Hope you enjoy!

Cloud Notes iPhone App for Rackspace Email

I’m a note fanatic. Any time I have an idea or need to jot down an address, parking spot number, or anything else, I go straight for my phone and start typing. Since I consider my notes to be very important, I’ve always wanted to build an Internet-backed notes app so I wouldn’t [...]