Added missing default: to switch()
Added some explicit casts
renamed NSTextAlignment* to NS*TextAlignment