Re: Converting to ARC and blocks

2016-05-02 Thread John McCall
> On May 2, 2016, at 11:30 AM, Steve Mills wrote: > > On May 02, 2016, at 12:58 PM, John McCall wrote: > > > You don't have to declare something with __block just to use it in a block. > > __block specifically means that the variable will be captured *by > > reference* in the block, meaning t

Re: Converting to ARC and blocks

2016-05-02 Thread Steve Mills
On May 02, 2016, at 12:58 PM, John McCall wrote: You don't have to declare something with __block just to use it in a block. __block specifically means that the variable will be captured *by reference* in the block, meaning that changes to the variable within the block are visible in the orig

Re: Converting to ARC and blocks

2016-05-02 Thread John McCall
> On May 2, 2016, at 10:38 AM, Steve Mills wrote: > I'm working on a project that's had to support older hardware/software until > now, so we can *finally* convert to ARC. Since it's been almost a year since > I've worked on anything that used ARC, I'm a little rusty on some of the > stranger s

Re: Converting to ARC and blocks

2016-05-02 Thread Steve Mills
On May 02, 2016, at 12:45 PM, Steve Mills wrote: I'm working on a project that's had to support older hardware/software until now, so we can *finally* convert to ARC. Since it's been almost a year since I've worked on anything that used ARC, I'm a little rusty on some of the stranger stuff, l

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Shane Stanley
On 21/08/2013, at 12:59 AM, Gerriet M. Denkmann wrote: >> What version of Xcode? I just tried this with Xcode 4.6.3 and it worked >> perfectly. > > A difficult question: I am not allowed to talk about this (which might give > you an idea, which version I was using). Worked fine for me in an

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Alex Zavatone
Actually, I think the question is "what version of Xcode are you upgrading the project from and what version of Xcode are you using to do the conversion?" That way, it's much easier to pin down the specific case that might be causing this. - Alex Zavatone On Aug 20, 2013, at 10:57 AM, glenn

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Gerriet M. Denkmann
On 20 Aug 2013, at 21:54, glenn andreas wrote: > > On Aug 20, 2013, at 8:43 AM, Gerriet M. Denkmann wrote: > >> >> On 20 Aug 2013, at 20:27, Fritz Anderson wrote: >> >>> Sure, but the whole point the OP is trying to make is that the purported >>> error is being raised by the refactoring p

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread glenn andreas
On Aug 20, 2013, at 8:43 AM, Gerriet M. Denkmann wrote: > > On 20 Aug 2013, at 20:27, Fritz Anderson wrote: > >> Sure, but the whole point the OP is trying to make is that the purported >> error is being raised by the refactoring process that is _supposed to remove >> that retain_. Refactor

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Gerriet M. Denkmann
On 20 Aug 2013, at 21:41, Jens Alfke wrote: > This looks like a bug in Xcode’s refactoring tool — seems it doesn’t > understand the auto-synthesize feature. I would take your test case and > attach it to a new Radar bug report to Apple. Just done this. Bug 14784266. Gerriet. _

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Jens Alfke
This looks like a bug in Xcode’s refactoring tool — seems it doesn’t understand the auto-synthesize feature. I would take your test case and attach it to a new Radar bug report to Apple. The workaround should be to add an explicit instance variable declaration and an “@synthesize” directive whe

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Gerriet M. Denkmann
On 20 Aug 2013, at 20:27, Fritz Anderson wrote: > Sure, but the whole point the OP is trying to make is that the purported > error is being raised by the refactoring process that is _supposed to remove > that retain_. Refactoring would be a very easy process indeed if doing the > conversion y

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Fritz Anderson
Sure, but the whole point the OP is trying to make is that the purported error is being raised by the refactoring process that is _supposed to remove that retain_. Refactoring would be a very easy process indeed if doing the conversion yourself is a prerequisite of having Xcode do it. The use o

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Shane Stanley
On 20/08/2013, at 9:07 PM, "Gerriet M. Denkmann" wrote: > How to placate Xcode? Are you sure it's not the use of retain that it's complaining about? Without that, your code compiles fine here. -- Shane Stanley 'AppleScriptObjC Explored' ___ Coc

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Gerriet M. Denkmann
On 20 Aug 2013, at 19:24, Uli Kusterer wrote: > You're missing an @synthesize privateData = _privateData; in your > @implementation, would be my guess. There is no @synthesize, this is true. But Xcode normally does not mind, and I think this is (since when?) no longer necessary (maybe only i

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread Uli Kusterer
You're missing an @synthesize privateData = _privateData; in your @implementation, would be my guess. On Aug 20, 2013, at 1:07 PM, Gerriet M. Denkmann wrote: > Trying to convert an older project to Arc, Xcode complains about "Use of > undeclared identifier '_privateDate'". > And threatens that

Re: Converting to ARC

2011-12-29 Thread Martin Hewitson
Ah, I missed the disclosure triangle. Unfortunately, unchecking that file didn't seem to stop the converter from checking it. I needed to do a Clean first. Just 11 issues to go Thanks! Martin On 29, Dec, 2011, at 06:41 PM, Zac Bowling wrote: > Uncheck those files in the ARC converter s