having fun with code

Tag Archives: cocoa

Titanium Developer: love and hate (Part II)

For the last four weeks and despite other projects and deadlines, I’ve been working on a mobile app for iPhone and Android, using Titanium Developer from Appcelerator. I still hate it. And I still love it. More to come…

Trimming strings in Objective-C / Cocoa

returnString =  [returnString stringByTrimmingCharactersInSet:                  [NSCharacterSet whitespaceAndNewlineCharacterSet]]; Very intuitive, huh?

Placing a UIActivityIndicartorView on a UIBarButtonItem

Have you seen those iPhone apps with a reload button that switches itself to an animated activity indicator while the reload action is being performed? Here is how to do that. Place this code on your ViewController: – (void)showReloadButton {   UIBarButtonItem *refreshItem = [[UIBarButtonItem alloc]     initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh             [...]

MyGameOfLife source code

Almost a year ago I was learning some Cocoa and I decided it will be fun to implement a Cocoa based version of Conway’s Game of Life. Back then I didn’t publish the source code, not for any special reason. So now I have just uploaded it to Google Code. It’s not fully functional, since [...]

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info