27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
self = [super init];
@try {
/* Should usually be retain, as it's useless with a copy */
_data = [data copy];
_range = range;
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)dealloc
{
[_data release];
[super dealloc];
}
- (size_t)count
{
return _range.length;
|
|
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
self = [super init];
@try {
/* Should usually be retain, as it's useless with a copy */
_data = [data copy];
_range = range;
} @catch (id e) {
objc_release(self);
@throw e;
}
return self;
}
- (void)dealloc
{
objc_release(_data);
[super dealloc];
}
- (size_t)count
{
return _range.length;
|