Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread David Duncan
On Jan 1, 2015, at 3:38 PM, Graham Cox graham@bigpond.com wrote: Hi all, I know I'm very, very late to the party, but I'm building my first ever project with ARC instead of manual retain/release (which I was always very comfortable with). Frankly, I'm finding it frustrating because

Re: Image Sizing

2015-01-01 Thread Uli Kusterer
On 31 Dec 2014, at 14:04, Charles Jenkins cejw...@gmail.com wrote: I have a non-retina Mac and no experience knowing what happens to graphics when used on a retina screen. I bought PixelCut's PaintCode as a Christmas present to myself so that my images could be made resolution-independent,

Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Graham Cox
Hi all, I know I'm very, very late to the party, but I'm building my first ever project with ARC instead of manual retain/release (which I was always very comfortable with). Frankly, I'm finding it frustrating because it seems much harder to know how memory is managed. Anyway. I will plough on

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2015-01-01 Thread Roland King
On 1 Jan 2015, at 23:00, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 01 Jan 2015, at 02:50, Jack Brindle jackbrin...@me.com wrote: You might want to extend that. The header file indicates that containsString: _only_ is available in OS X starting with 10.10 and iOS starting with

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2015-01-01 Thread Uli Kusterer
On 01 Jan 2015, at 02:50, Jack Brindle jackbrin...@me.com wrote: You might want to extend that. The header file indicates that containsString: _only_ is available in OS X starting with 10.10 and iOS starting with 8.0. I would expect this to crash, or at least behave very poorly, under any

Re: Bifurcating text color in QL on X.6, how?

2015-01-01 Thread Jens Alfke
On Jan 1, 2015, at 1:25 PM, Eden Smallwood zeppenw...@lafn.org wrote: If you’re thinking Wh on Bk and Bk on Wh, therefore XOR to the rescue, I’ve tried every conceivable setting of cgBlendMode and nsCompositingMode and nothing has any effect whatsoever on the text color which

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2015-01-01 Thread Uli Kusterer
On 01 Jan 2015, at 16:15, SevenBits sevenbitst...@gmail.com wrote: Uli: is it possible to create a category which defines a method called containsString:, and only have it activate on 10.9 or lower and use the new Apple method on 10.10 and above? In theory, you could add code on 10.8 and

Bifurcating text color in QL on X.6, how?

2015-01-01 Thread Eden Smallwood
Greetings, O readers of the sacred list ! Merry Xmas, and a Happy New Macintosh, btw. On X.6 Snow Leopard, a QuickLook preview executed from the Finder is displayed in a window with a translucent black background. The text color is white, ergo. On the same

Re: Image Sizing

2015-01-01 Thread Gleb Dolgich
Duet adds a connected iPad as a second display which you can set to use Retina resolution. I just tried it and it seems to work pretty well with only a slight lag. I bought Duet with the main purpose of testing my apps at the Retina resolution without having to switch the main display to one.

Re: Bifurcating text color in QL on X.6, how?

2015-01-01 Thread Quincey Morris
On Jan 1, 2015, at 13:25 , Eden Smallwood zeppenw...@lafn.org wrote: How does Apple know to make the text white in one place and black in the other? How are you choosing the color for your text? Have you tried [NSColor textColor] or perhaps [NSColor controlTextColor]?

Re: Image Sizing

2015-01-01 Thread Charles Jenkins
Thank you all for that good information. :-) I once had AirDisplay for my iPad, so I need to re-download it and see what I need to do to get it going with Yosemite. — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Quincey Morris
On Jan 1, 2015, at 17:20 , Graham Cox graham@bigpond.com wrote: I'm using Allocations, but I'm finding the volume of data a bit overwhelming. As an aside, Leaks shows nothing at all. Does that mean I'm not actually leaking anything? Forget Leaks, it’s an utter waste of time*. Use

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Graham Cox
On 2 Jan 2015, at 10:52 am, David Duncan david.dun...@apple.com wrote: The first thing to keep in mind is that unless otherwise qualified, all object references are owned - locals, ivars, array entries, etc. The places where this isn’t possible (such as structs) are flagged as compiler

Fwd: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2015-01-01 Thread SevenBits
-- Forwarded message -- From: *SevenBits* sevenbitst...@gmail.com Date: Thursday, January 1, 2015 Subject: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?) To: Uli Kusterer witness.of.teacht...@gmx.net On Thursday, January 1, 2015, Uli Kusterer

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Cosmo
A while back I had a similar sounding issue in an iOS project I was working on. The memory usage kept growing, although I could find no obvious culprits in my code after hours of exploration. My solution probably doesn’t pertain to you, but I thought I’d pass it along just in case it’s

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Joar Wingfors
On 1 jan 2015, at 18:26, Graham Cox graham@bigpond.com wrote: On 2 Jan 2015, at 12:48 pm, Quincey Morris quinceymor...@rivergatesoftware.com wrote: That usually means the block and the ‘self’ it captured mutually refer to each other. I’m betting this is what’s wrong in your

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Joar Wingfors
On 1 jan 2015, at 18:22, Roland King r...@rols.org wrote: +1 for all of this. I wouldn't call leaks an utter waste of time, but it really does only find pure retain cycles (which it then annotates very nicely) and not memory which is really is pinned by a real reference which is more

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Roland King
On 2 Jan 2015, at 10:52, Joar Wingfors j...@joar.com wrote: On 1 jan 2015, at 18:22, Roland King r...@rols.org wrote: +1 for all of this. I wouldn't call leaks an utter waste of time, but it really does only find pure retain cycles (which it then annotates very nicely) and not memory

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Clark S. Cox III
On Jan 1, 2015, at 18:26, Graham Cox graham@bigpond.com wrote: On 2 Jan 2015, at 12:48 pm, Quincey Morris quinceymor...@rivergatesoftware.com wrote: That usually means the block and the ‘self’ it captured mutually refer to each other. I’m betting this is what’s wrong in your

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Roland King
My handler block refers to 'self' quite extensively - it calls other methods of self and also refers to properties such as self.delegate. I'm not quite sure how I can rework it not to refer to self. Maybe I just need to not use the completion block approach and use a delegate callback

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Graham Cox
On 2 Jan 2015, at 12:48 pm, Quincey Morris quinceymor...@rivergatesoftware.com wrote: That usually means the block and the ‘self’ it captured mutually refer to each other. I’m betting this is what’s wrong in your case. Quincey, thanks for your lengthy and well-thought-out reply

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Roland King
+1 for all of this. I wouldn't call leaks an utter waste of time, but it really does only find pure retain cycles (which it then annotates very nicely) and not memory which is really is pinned by a real reference which is more often the case. Also, if you're using KVO anywhere, this tends to

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread Graham Cox
On 2 Jan 2015, at 1:46 pm, Roland King r...@rols.org wrote: Having a handler block which refers to self is not in and of itself a problem, very many blocks implicitly do. The block retains self, however in most cases something else retains the block and the self reference goes away when