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
ttle rusty on some of the > stranger stuff, like __unsafe_retained. Here's a pared down hunk before > converting to ARC: > > NSXMLElement* root = [NSXMLNode elementWithName:@"manifest" children:nil > attributesWithDict:@{@"thing":@"stuff"}];

Re: Converting to ARC and blocks

2016-05-02 Thread Steve Mills
me of the stranger stuff, like __unsafe_retained. Here's a pared down hunk before converting to ARC: Of course, I meant to type __unsafe_unretained in my previous message. Sent from iCloud's ridiculous UI, so, sorry about the formatting   ___

Converting to ARC and blocks

2016-05-02 Thread Steve Mills
Here's a pared down hunk before converting to ARC: NSXMLElement* root = [NSXMLNode elementWithName:@"manifest" children:nil attributesWithDict:@{@"thing":@"stuff"}]; __block NSXMLElement* rezes = [NSXMLNode elementWithName:@"resource

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

Converting to Arc → undeclared identifier

2013-08-20 Thread Gerriet M. Denkmann
Trying to convert an older project to Arc, Xcode complains about "Use of undeclared identifier '_privateDate'". And threatens that nothing will be done unless I fix this first. Well - for one: without Arc there are no undeclared identifiers. (Builds without error or warnings). The class with pr

Re: Problems converting to ARC

2013-04-21 Thread Christ Levesque
>> I want to convert my code to ARC but this problems doesn't let me to do >> this. I read the errors but I couldn't do nothing. All the problems are in >> these else if statement and are colored Red. >> >> else if (isupper(character)){ >> 1) Pointer to non-const type 'NSString *' with no e

Re: Problems converting to ARC

2013-04-21 Thread Christ Levesque
>> I want to convert my code to ARC but this problems doesn't let me to do >> this. I read the errors but I couldn't do nothing. All the problems are in >> these else if statement and are colored Red. >> >> else if (isupper(character)){ >> 1) Pointer to non-const type 'NSString *' with no e

Re: Problems converting to ARC

2013-04-20 Thread Ken Thomases
On Apr 18, 2013, at 2:45 AM, Christ Levesque wrote: > I want to convert my code to ARC but this problems doesn't let me to do this. > I read the errors but I couldn't do nothing. All the problems are in these > else if statement and are colored Red. > > else if (isupper(character)){ > 1)

Problems converting to ARC

2013-04-19 Thread Christ Levesque
Hi there, I want to convert my code to ARC but this problems doesn't let me to do this. I read the errors but I couldn't do nothing. All the problems are in these else if statement and are colored Red. else if (isupper(character)){ 1) Pointer to non-const type 'NSString *' with no expli

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

Converting to ARC

2011-12-29 Thread Martin Hewitson
Dear list, I'm trying to convert a project to ARC using the Refactor -> Convert to Objective-C ARC... command. My project uses RegexKitLite which is upsetting the conversion process. It shows 68 reasons why the conversion is not possible. So I tried adding -fno-objc-arc to the compiler flags f