Replaced deprecated textAlignment: and lineBreakMode: properties

Sorry about the former pull request, I made a copy-paste mistake so I was using a NSLineBreakMode property for the text alignment. Both are fixed correctly now.