You probably need to use the NSParagraphStyleAttributeName attribute key along with an NSParagraphStyle object attribute to define its line break mode to match the one being passed in. There may be some other defaults to setup in the NSParagraphStyle object too, to make this work correctly.