changed to NSTextAlignmentCenter

Updated to use non-deprecated constant to prevent warnings