Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inbound = [NSArray arrayWithArray:[theAccount.incomes sortedArrayUsingDescriptors:[NSArray arrayWithObject:desc]]];
- outbound = [NSArray arrayWithArray:[theAccount.expenses sortedArrayUsingDescriptors:[NSArray arrayWithObject:desc]]];
- NSMutableSet *allSet = [NSMutableSet setWithArray:inbound];
- [allSet unionSet:[NSSet setWithArray:outbound]];
- all = [NSArray arrayWithArray:[allSet sortedArrayUsingDescriptors:[NSArray arrayWithObject:desc]]];
- NSLog(@"The inbound array is : n");
- for (Transaction *trs in inbound) {
- NSLog(@"Transaction name:%@ transaction sum : %.2f isExpense : %@",trs.name,[trs.totalAmountInDefaultCurrency doubleValue],trs.isExpense);
- }
- NSLog(@"The outbound array is : n");
- for (Transaction *trs in outbound) {
- NSLog(@"Transaction name:%@ transaction sum : %.2f isExpense : %@",trs.name,[trs.totalAmountInDefaultCurrency doubleValue],trs.isExpense);
- }
- 2012-10-01 18:38:54.079 app[5508:12203] The inbound array is :
- 2012-10-01 18:38:54.080 app[5508:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:38:54.080 app[5508:12203] The outbound array is :
- 2012-10-01 18:38:54.081 app[5508:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:38:54.082 app[5508:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:38:54.083 app[5508:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:46:18.798 app[5630:12203] The inbound array is :
- 2012-10-01 18:46:18.799 app[5630:12203] The outbound array is :
- 2012-10-01 18:46:18.800 app[5630:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:46:18.800 app[5630:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:46:18.801 app[5630:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
- 2012-10-01 18:46:18.802 app[5630:12203] Transaction name:kfc transaction sum : 20.00 isExpense : 1
Add Comment
Please, Sign In to add comment