issue-2-background-networking icon indicating copy to clipboard operation
issue-2-background-networking copied to clipboard

Not compatible with Xcode 4.2

Open azav opened this issue 11 years ago • 4 comments

I do a lot of work on my Snow Leopard system and therefore must use Xcode 4.2.

There are two errors that I don't understand in DownloadOperation.m, one on line 88 and one on line 96.

Line 88: _isExecuting = isExecuting; Use of undeclared identifier "_isExecuting"; did you mean "isExecuting"?

Line 96: _isFinshed = isFinshed; Use of undeclared identifier "_isFinshed"; did you mean "isFinshed"?

I'd expect that I'd have to add @synthesizes for all private properties, but how can this be done for those two so as to not generate this error?

azav avatar Jul 15 '13 14:07 azav

Think I got it: @synthesize isExecuting = _isExecuting;

azav avatar Jul 15 '13 14:07 azav

In DownloadOperation.h and DownloadOperation.m, why is an NSError declared as a property twice? If you want to have public and private properties named error, shouldn't you name them differently to point out which is which?

azav avatar Jul 15 '13 14:07 azav

What is the right way to @synthesize the block property?

@property (nonatomic, copy) void (^progressCallback) (float);

azav avatar Jul 15 '13 14:07 azav

That looks about right. I don't have access to 10.7 to test it, though. llvm / clang switch to auto-synthesise at point, IIRC it was part of llvm 3.2.

danieleggert avatar Jul 15 '13 21:07 danieleggert