Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of UIBuilder

UIBuilder

UIBuilder has asked 2 questions and find answers to 6 problems.

Stats

222
EtPoint
79
Vote count
2
questions
6
answers

About

- (ObjectToHome*)doWorkWithTasks:(NSMutableArray*)tasks
{
    @try
    {
        [(Task*)[tasks lastObject] done];

        [tasks removeLastObject];

        return [tasks count] > 0 ? [self doWorkWithTasks: tasks] : self ;

    } 
    @catch (NSException * exception)
    {
        [tasks insertObject: [Task taskWithException: exception] atIndex:0];

        [self doWorkWithTasks: tasks];
    }
    @finally
    {}
}