Re: OS_OBJECT_USE_OBJC_RETAIN_RELEASE and xpc_release()

2012-11-08 Thread Jerry Krinock
Update on email delays: Greg, sorry it took so long to reply this; I was waiting to see if your email would arrive. Although I have definitely been foiled by delays of several hours on this list for many months, it appears that the even-longer delays I saw last week were due to IEEE mail

Re: OS_OBJECT_USE_OBJC_RETAIN_RELEASE and xpc_release()

2012-11-08 Thread Jean-Daniel Dupas
Le 8 nov. 2012 à 14:54, Jerry Krinock je...@ieee.org a écrit : Update on email delays: Greg, sorry it took so long to reply this; I was waiting to see if your email would arrive. Although I have definitely been foiled by delays of several hours on this list for many months, it appears

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

Re: OS_OBJECT_USE_OBJC_RETAIN_RELEASE and xpc_release()

2012-11-08 Thread Jerry Krinock
On 2012 Nov 08, at 08:59, Jean-Daniel Dupas devli...@shadowlab.org wrote: Assuming you are targeting 10.8, yes you should remove all xpc_retain/release and dispatch_retain/release calls. Nope. Targeting 10.6+. So then I guess I should stick with the alternative of using xpc_release() and

Re: OS_OBJECT_USE_OBJC_RETAIN_RELEASE and xpc_release()

2012-11-08 Thread Greg Parker
On Nov 8, 2012, at 5:40 PM, Jerry Krinock je...@ieee.org wrote: On 2012 Nov 08, at 08:59, Jean-Daniel Dupas devli...@shadowlab.org wrote: Assuming you are targeting 10.8, yes you should remove all xpc_retain/release and dispatch_retain/release calls. Nope. Targeting 10.6+. So then I

Re: printing arrays

2012-11-08 Thread Gerriet M. Denkmann
On 3 Nov 2012, at 22:42, Kyle Sluder k...@ksluder.com wrote: On Nov 2, 2012, at 10:18 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 3 Nov 2012, at 00:35, Kyle Sluder k...@ksluder.com wrote: If this is just for debugging purposes, you could swizzle -[NSArray description] and