having fun with code

Monthly Archives: July, 2009

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

Setters & Getters on Mootools classes

Although I haven’t need them for my classes, I thought it would be very cool to have the possibility to use them. Setters and Getters are very popular in modern programming languages, since they let you do some actions when a member/property of an object is being accessed or modified. Setters and Getters are native [...]

Mootools stuff to review

Two interesting things I have to review; MooTools: Bubbling Controllers MooTools: Ignoring the next click

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

PromoteJS

JavaScript JS Documentation