Skip to content

Monthly Archives: June 2008

Always use notification name globals, not string literals!

What’s wrong with this code? – (void)registerForNotificationsFromTask:(NSTask *)task ( { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(taskDidTerminateNotification:) name:@”NSTaskDidTerminateNotification” object:task]; } If you didn’t notice anything wrong, look again. What’s bad about this is that it’s passing a **string literal** instead of a **global variable** for the notification name. The code should really look like this: – (void)registerForNotificationsFromTask:(NSTask *)task […]

I fucking hate this city

Meg rode her bike down from the hotel to Union Square to meet me for dinner, locking it up at a bike station right outside Borders. After we walked back from dinner, we discovered it had been stolen. Right in the middle of dinner, right on the corner of fucking Union Square. I fucking hate […]

WWDC 2008

The time is upon us once again — WWDC time! As I have the past few years, I’ll be in San Francisco all week, staying at the Hotel Kabuki in Japantown. And of course, I’ll be around the conference all week — especially in the labs. Come by and say hi, and I’ll be happy […]

No NSCoder night for me tonight!

I’d like to make it to NSCoder Night tonight, but I just have too much else to do today — again. I won’t be seeing anyone at NSCoder Night next week, either, as I’ll be in San Francisco for the Apple Worldwide Developers Conference! If you’re attending, be sure to find me and say hi!