aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/utils/NSArray+MCO.mm
blob: 1c4ef3e64171ead65e43b593a472d20f1dcbf2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
//  NSArray+MCO.cpp
//  mailcore2
//
//  Created by DINH Viêt Hoà on 1/29/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#import "NSArray+MCO.h"

#include "MCBaseTypes.h"

#import "NSObject+MCO.h"

@implementation NSArray (MCO)

- (mailcore::Array *) mco_mcArray
{
    mailcore::Array * result = mailcore::Array::array();
    for(NSObject * value in self) {
        [value mco_mcObject];
    }
    return result;
}

@end