Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Dave
> On 24 Feb 2016, at 23:57, Greg Parker wrote: > > >> On Feb 24, 2016, at 2:31 AM, Dave wrote: >> >> Also, beware subclassing a Non-ARC Class in an ARC Project - you have to >> have the subclass Non-ARC too. > > This is not true. For example, NSView is not ARC but you can write ARC > subcla

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Jens Alfke
> On Feb 25, 2016, at 8:35 AM, Dave wrote: > >>> Also, beware subclassing a Non-ARC Class in an ARC Project - you have to >>> have the subclass Non-ARC too. >> >> This is not true. For example, NSView is not ARC but you can write ARC >> subclasses of it. > > I didn’t say it was impossible, b

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Dave
> On 25 Feb 2016, at 17:43, Jens Alfke wrote: > > >> On Feb 25, 2016, at 8:35 AM, Dave > > wrote: >> Also, beware subclassing a Non-ARC Class in an ARC Project - you have to have the subclass Non-ARC too. >>> >>> This is not true. For example, NSView

Changing timing for looping uiview animation

2016-02-25 Thread Eric Dolecki
I have a heart rate looping scaling animation.  Every 5 seconds I get new data. How can I adjust the looping scale rate without removing the animation before setting the new rate without hiccups? Sent from Outlook on my phone. ___ Cocoa-dev mailing lis

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Uli Kusterer
On 24 Feb 2016, at 00:47, Quincey Morris wrote: > For example, an object obtained via [[…alloc]init…] is generally assumed to > be returned with a +1 ownership, but an object obtained via a class method > named ‘newXXX…’ is generally assumed to be returned with +0 ownership. Did you really me

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Quincey Morris
On Feb 25, 2016, at 22:15 , Uli Kusterer wrote: > > Did you really mean +newBlah ? Not something like +blahWithX: or just +blah? > Because +new is documented to just be a shorthand for +alloc followed by > -init on the result, so +newBlah behaving differently than +new sounds kinda > inconsist

Re: ARC code in a non ARC app. iOS

2016-02-25 Thread Uli Kusterer
On 24 Feb 2016, at 00:25, Alex Zavatone wrote: > Would it be recommended to package my ARC code with ARC turned off and > package that in a framework and then link to that from the non ARC app that > will need to load it? Nope, that would leak all over the place, or dangle pointers depending o