The R Project SVN R-packages

Rev

Rev 714 | Rev 1254 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 714 Rev 926
Line 56... Line 56...
56
	}
56
	}
57
	[self addColumn: [NSArray arrayWithObjects:ca count:clen] withName:name];
57
	[self addColumn: [NSArray arrayWithObjects:ca count:clen] withName:name];
58
	free(ca);
58
	free(ca);
59
}
59
}
60
 
60
 
-
 
61
- (void) addColumnOfLength: (int) clen withUTF8Strings: (char**) cstr name: (NSString*) name
-
 
62
{
-
 
63
	NSString **ca = (NSString**) malloc(sizeof(NSString*)*clen);
-
 
64
	int i=0;
-
 
65
	while (i<clen) {
-
 
66
		ca[i] = [NSString stringWithUTF8String: cstr[i]];
-
 
67
		i++;
-
 
68
	}
-
 
69
	[self addColumn: [NSArray arrayWithObjects:ca count:clen] withName:name];
-
 
70
	free(ca);
-
 
71
}
-
 
72
 
61
- (id) init
73
- (id) init
62
{
74
{
63
    self = [super init];
75
    self = [super init];
64
    if (self) {
76
    if (self) {
65
		col=[[NSMutableArray alloc] init];
77
		col=[[NSMutableArray alloc] init];