The R Project SVN R-packages

Rev

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

Rev 6228 Rev 6229
Line 120... Line 120...
120
	// we are a subclass of RTextView which has its own awake and we must call it
120
	// we are a subclass of RTextView which has its own awake and we must call it
121
	[super awakeFromNib];
121
	[super awakeFromNib];
122
 
122
 
123
	SLog(@"RScriptEditorTextView: awakeFromNib <%@>", self);
123
	SLog(@"RScriptEditorTextView: awakeFromNib <%@>", self);
124
 
124
 
-
 
125
	// Bind scrollView programmatically - if done in RDocument.xib this'd lead to
-
 
126
	// calling awakeFromNib twice
-
 
127
	id scrView = (NSScrollView *)self.superview.superview;
-
 
128
	if ([scrView isKindOfClass:[NSScrollView class]]) {
-
 
129
		if(scrollView) [scrollView release];
-
 
130
		scrollView = [scrView retain];
-
 
131
		SLog(@"RScriptEditorTextView:awakeFromNib set scrollView");
-
 
132
	}
-
 
133
 
125
	prefs = [[NSUserDefaults standardUserDefaults] retain];
134
	prefs = [[NSUserDefaults standardUserDefaults] retain];
126
	[[Preferences sharedPreferences] addDependent:self];
135
	[[Preferences sharedPreferences] addDependent:self];
127
 
136
 
128
	lineNumberingEnabled = [Preferences flagForKey:showLineNumbersKey withDefault:NO];
137
	lineNumberingEnabled = [Preferences flagForKey:showLineNumbersKey withDefault:NO];
129
 
138
 
Line 313... Line 322...
313
- (void)dealloc {
322
- (void)dealloc {
314
	SLog(@"RScriptEditorTextView: dealloc <%@>", self);
323
	SLog(@"RScriptEditorTextView: dealloc <%@>", self);
315
 
324
 
316
	[theTextStorage release];
325
	[theTextStorage release];
317
 
326
 
-
 
327
	if(scrollView) [scrollView release];
318
	if(editorToolbar) [editorToolbar release];
328
	if(editorToolbar) [editorToolbar release];
319
 
329
 
320
	if(highlightColorAttr) [highlightColorAttr release];
330
	if(highlightColorAttr) [highlightColorAttr release];
321
 
331
 
322
	if(shColorNormal) [shColorNormal release];
332
	if(shColorNormal) [shColorNormal release];