Use NSTextAlignmentCenter

Removed deprecation errors