I have a read-only property isFinished
in my interface file:
typedef void (^MyFinishedBlock)(BOOL success, NSError *e);
@interface TMSyncBase :
A slight workaround is to create a method and let that the compiler handle it for you. Works fine, but I'm not sure if it is the correct way. Can someone tell if its correct?
__weak MyClass *weakSelf = self;
MyFinishedBlock finishedBlockWrapper = ^(BOOL success, NSError *e) {
[weakSelf makeIsFinishedYes];
};
- (void)makeIsFinishedYes
{
isFinished_ = YES;
}