Added support for NSAttributedStrings.