I’m sure the pun between the acronym for “NeXT Interface Builder” and this definition of “cocoa beans” is intentional, but it surprised me anyway:

I’m sure the pun between the acronym for “NeXT Interface Builder” and this definition of “cocoa beans” is intentional, but it surprised me anyway:

(Highly geeky post ahead. You’ve been warned!)
I have found the very message that summarizes the beauty of Cocoa in a single word; see by yourselves, hereunder in line 47:
[source:c]
// The interface of a person @interface Person : NSObject { NSString* firstName; NSString* lastName; int age; } @end
// The implementation of the Person @implementation Person -(id)init { if (self = [super init]) { firstName = @”"; lastName = @”"; age = 0; } return self; }
-(void)dealloc { [firstName release]; [lastName release]; [super dealloc]; }
-(NSString*)description { return [[NSString alloc] initWithFormat:@”Name: %@ %@, %d years old”, firstName, lastName, age]; } @end
// Some code using the Person class int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSMutableDictionary* dict = [[[NSMutableDictionary alloc] init] autorelease];
[dict setObject:@"Teto" forKey:@"firstName"];
[dict setObject:@"Rodriguez" forKey:@"lastName"];
[dict setObject:[[NSNumber alloc] initWithInt:34] forKey:@"age"];
Person* person = [[[Person alloc] init] autorelease];
// The beauty of Cocoa can be resumed to this very line:
[person setValuesForKeysWithDictionary:dict];
// Now sit back and relax:
NSLog([person description]);
[pool drain];
return 0;
} [/source]
Seen in Guy Kawasaki’s blog:

Este es un mensaje para SpinDoctor: en Ginebra se consigue Mantecol!!! He aquí la prueba (la latita de Aromat es para probar que la foto la saqué en Suiza ;)
Nosotros no somos como los Orozco, yo los conozco, son ocho los monos: Pocho, Toto, Cholo, Tom, Moncho, Rodolfo, Otto, Pololo. Yo pongo los votos sólo por Rodolfo, los otros son locos, yo los conozco, no los soporto. Stop. Stop.
Pocho Orozco: Odontólogo ortodoxo, doctor Como Borocotó Oncólogo jodón Morocho tordo Groncho jocoso Trosko Chocó con los montos Colocó Molotov. Bonzo. Continue reading
(écrit le 6 avril 1996)
L’histoire humaine est pleine de surprises. Prenons, par exemple, le cas tres particulier des “Multiplication des J”. En effet, de très nombreuses personnalités connues par leurs réalisations dans de très nombreux domaines possèdent des patronymes commençant par la lettre J, considérée d’ailleurs par certaines castes de chamans du sud de la polynésie comme miraculeuse. Citons, à titre d’exemple, les noms suivants: Continue reading
Not to mention that Singapore is slightly southern where it should be, or that Houston is a bit too close to Monterrey, but I’m too picky there.

Found in one of those companies doing website monitoring 24×7, which shall remain nameless. In terms of maps (and geographical knowledge in general) I’ve seen much worse, if you ask me, even in non-US mass media.