> It seems to be working, as this code was here for a half-year (or more).

"seems to be working" is not the same thing as "correct".  I guess it's possible there is simply no one still running OS X 10.5 except my dad-in-law.