Archive for the ‘Cocoa’ Category

Shark is the greatest!

Sunday, June 3rd, 2007

I am just now discovering Shark, and it is without a doubt one of the greatest programming tools ever!

Leopard to mean the end of “windows”?

Monday, May 14th, 2007

This article speculates that Leopard could mean the end of the while “windows” user-interface paradigm. We’ll find out for sure when Steve Jobs gives his WWDC keynote on June 11th. If Leopard really does turn out to mean the end of windows, I’m going to have to really put some serious time into thinking about whether it’s worth keeping Tiger support for this program that I’m working on now.

How get the observedObject from a NSManagedObject subclass

Tuesday, May 8th, 2007

This comes in handy… I’d been stuck for several days because apparently Scott Stevenson’s [item valueForKey:@”observedObject”] trick will only work in NSManagedObject, not a subclass of it. So I just guessed my way to this, which is now a method in each of my NSManagedObject subclasses:

-(NSManagedObject *)observedObject {
NSManagedObjectID *objID = [self objectID];
NSManagedObjectContext *moc = [self managedObjectContext];
id tmpObject = [moc objectWithID:objID];

return tmpObject;
}

Cool summary of Distributed Objects

Saturday, April 28th, 2007

I know this is a little off-topic, but I just found this absolutely great summary of Distributed Objects in Cocoa (which appear to be kind of like RMI in Java).