more compatible NSPoint conversion code