The R Project SVN R-packages

Rev

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

Rev 5070 Rev 5707
Line 63... Line 63...
63
- (NSString*) string
63
- (NSString*) string
64
{
64
{
65
	return [cont string];
65
	return [cont string];
66
}
66
}
67
 
67
 
68
- (NSDictionary *) attributesAtIndex:(unsigned)index effectiveRange:(NSRangePointer)aRange
68
- (NSDictionary *) attributesAtIndex:(NSUInteger)index effectiveRange:(NSRangePointer)aRange
69
{
69
{
70
	[super ensureAttributesAreFixedInRange:NSMakeRange(index,1)];
70
	[super ensureAttributesAreFixedInRange:NSMakeRange(index,1)];
71
	return [cont attributesAtIndex:index effectiveRange:aRange];
71
	return [cont attributesAtIndex:index effectiveRange:aRange];
72
}
72
}
73
 
73
 
Line 142... Line 142...
142
- (NSLayoutManager*) layoutManager
142
- (NSLayoutManager*) layoutManager
143
{
143
{
144
	NSArray *lms = [self layoutManagers];
144
	NSArray *lms = [self layoutManagers];
145
	if (lms) {
145
	if (lms) {
146
		int lmsc = [lms count];
146
		int lmsc = [lms count];
147
		if (lmsc>0) {
147
		if (lmsc > 0) {
-
 
148
			if (lmsc > 1)
148
			if (lmsc>1) SLog(@"REditorTextStorage(%@).layoutManager: more than one LM exists, returning the first one",self);
149
                NSLog(@"REditorTextStorage(%@).layoutManager: more than one LM exists, returning the first one",self);
149
			return [lms objectAtIndex:0];
150
			return [lms objectAtIndex:0];
150
		}
151
		}
151
	}
152
	}
152
	return nil;
153
	return nil;
153
}
154
}