max object source code, not using maxcpp anymore due to incompatibility with new version of Xcode