Re: NSAttributedString mysteriously truncated too soon

2012-11-09 Thread Matt Neuburg
On Nov 8, 2012, at 4:24 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Nov 8, 2012, at 13:23 , Matt Neuburg m...@tidbits.com wrote: The result (and this is the problem) is that the label truncates after the **first line** of the second paragraph (Four score and seven

NSAttributedString mysteriously truncated too soon

2012-11-08 Thread Matt Neuburg
I have a tall UILabel with numberOfLines 0 (meaning infinite). The problem remains the same even if numberOfLines is some large finite number such as 20, so that's not the source of the problem. I am creating an attributed string like this: NSString *s1 = @The Gettysburg Address, as given

Re: NSAttributedString mysteriously truncated too soon

2012-11-08 Thread Sixten Otto
Out of curiosity, does it matter if you change this line: [content addAttribute:NSParagraphStyleAttributeName value:para range:NSMakeRange(title.length,1)]; to this? [content addAttribute:NSParagraphStyleAttributeName value:para range:NSMakeRange(title.length,blurb.length)]; I don't know

Re: NSAttributedString mysteriously truncated too soon

2012-11-08 Thread Kyle Sluder
On Thu, Nov 8, 2012, at 03:42 PM, Sixten Otto wrote: Out of curiosity, does it matter if you change this line: [content addAttribute:NSParagraphStyleAttributeName value:para range:NSMakeRange(title.length,1)]; to this? [content addAttribute:NSParagraphStyleAttributeName value:para

Re: NSAttributedString mysteriously truncated too soon

2012-11-08 Thread Quincey Morris
On Nov 8, 2012, at 13:23 , Matt Neuburg m...@tidbits.com wrote: The result (and this is the problem) is that the label truncates after the **first line** of the second paragraph (Four score and seven years ago, our fa…). Why? There's plenty of room in my label for more lines! I believe it's