michael-mccracken.net

NSLocalizedString can set errno

This is a short one, but it might help someone with debugging someday.

A while back, we had some code that was checking errno, then using the NSLocalizedString macro to get a localized error message, but it checked errno again later. Only the app isn’t localized yet. There’s no Localizable.strings file, so when NSBundle -localizedStringForKey gets called, even though it fails gracefully, it still ends up setting errno to “ENOENT”, or “file not found”.

So the lesson is - in case you’re seeing weird behavior where errno is changing after you check it, make sure you’re not using any system calls that might set it.

Previously:
Free advice about a pro email client
July 6, 2007

If you’re thinking of writing a commercially successful pro email client for Mac OS X, here’s some advice along the lines of what I wrote yesterday:

Make sure you’ve tried a lot of email clients. Try everything you can get your hands on. Really use each one - figure out what makes it different, and what [...]

read the rest.
It could work: a 3rd party email client for OS X
July 5, 2007

Brent Simmons started a discussion yesterday about email apps for OS X. To summarize: Apple Mail doesn’t do enough for everyone, and the alternatives aren’t so great either. But because it is free, there’s no incentive for a third party to do better.

Paul Kafasis agrees, saying “Don’t compete with Free and Don’t compete with Apple”. [...]

read the rest.
The read-once email client and reference emails
June 8, 2007

I’ve been dreaming of a new kind of email client, one that only lets you look at a new email once. That’s right - you get to scan it for 30 seconds and then you have to do something with it or it gets archived out of sight. And you can only look at one [...]

read the rest.
« Previous PageNext Page »
Feed, Endorsements & other Links

my bookmarks

© 2005 - 2007 Michael McCracken.