The R Project SVN R-packages

Rev

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

Rev 6248 Rev 6249
Line 69... Line 69...
69
+ (NSTextAttachment *)attachment
69
+ (NSTextAttachment *)attachment
70
{
70
{
71
	return sharedAttachment;
71
	return sharedAttachment;
72
}
72
}
73
 
73
 
74
- (id)init
74
- (id)initWithDelegate:(id)theDelegate
75
{
75
{
76
	self = [super init];
76
	self = [super init];
77
 
77
 
78
	if (self != nil) {
78
	if (self != nil) {
79
		_attributedString = [[NSTextStorage alloc] init];
79
		_attributedString = [[NSTextStorage alloc] init];
Line 82... Line 82...
82
		_strImp  = [_attributedString methodForSelector:_strSel];
82
		_strImp  = [_attributedString methodForSelector:_strSel];
83
		_replImp = [_attributedString methodForSelector:_replSel];
83
		_replImp = [_attributedString methodForSelector:_replSel];
84
		_editImp = [self methodForSelector:_editSel];
84
		_editImp = [self methodForSelector:_editSel];
85
		_getlImp = [_attributedString methodForSelector:_getlSel];
85
		_getlImp = [_attributedString methodForSelector:_getlSel];
86
 
86
 
87
		selfDelegate = (RScriptEditorTextView*)[self delegate];
87
		selfDelegate = (RScriptEditorTextView*)theDelegate;
88
 
-
 
-
 
88
		[self setDelegate:theDelegate];
89
		foldedCounter = 0;
89
		foldedCounter = 0;
90
		currentMaxFoldedIndex = -1;
90
		currentMaxFoldedIndex = -1;
91
 
91
 
92
		for(NSInteger i = 0; i < R_MAX_FOLDED_ITEMS; i++) {
92
		for(NSInteger i = 0; i < R_MAX_FOLDED_ITEMS; i++) {
93
			foldedRanges[i][0] = -1;
93
			foldedRanges[i][0] = -1;