- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
-(BOOL) checkIsDeleted:(Transactions*)target
{
if (target.transactionType == TransactionTypeTransfer)
{
if (target.cashFlow && target.cashFlow.isDeleted && target.secondCashFlow && target.secondCashFlow.isDeleted)
return YES;
return NO;
}
else
if (target.cashFlow && target.cashFlow.isDeleted)
return YES;
return NO;
}
TarasB 05.04.2011 12:29 # 0
Мда, нечитаемо вышло.
gegMOPO4 06.04.2011 12:37 # 0
А что, в Objective C действительно такой странный оператор «не равно»?
TarasB 06.04.2011 13:21 # 0
guest 16.08.2011 18:38 # 0
return target.cashFlow.isDeleted &&
((target.transactionType != TransactionTypeTransfer) ||
target.secondCashFlow.isDeleted);
Lure Of Chaos 05.04.2011 15:31 # 0
gegMOPO4 06.04.2011 12:38 # 0
guest 29.07.2011 12:32 # −1
bugotrep 24.08.2021 01:03 # 0
Novi4oK 24.08.2021 02:10 # 0