Re: Questions regarding release

2019-09-28 Thread Wim Lewis via Cocoa-dev
On Sep 2'6, 2019, at 9:47 AM, Gabr'iel Zachmann via Cocoa-dev wrote: >> >> I don’t believe that’s entirely true. “make” methods return a +0 value. >> >> The issue in the below code to my eye is that you allocate a path with >> CGPathCreateWithRect (+1) but then don't release it. >> > > In

Re: Questions regarding release

2019-09-25 Thread Wim Lewis via Cocoa-dev
On Sep 25, 2019, at 12:31 PM, Gabriel Zachmann via Cocoa-dev wrote: > The doc for CGImageSourceCreateImageAtIndex() that I need to release imageRef > myself. > Is it safe to do it after assigning the nsimage to the layer, but before > deleting the layer? Yes, the NSImage will retain/release