comparison mac/dw.m @ 1130:c3138ffd0de0

Implemented foreground color changes for MLE on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 02 Sep 2011 17:02:50 +0000
parents ab73d0269a5b
children 25bea6526ca1
comparison
equal deleted inserted replaced
1129:ab73d0269a5b 1130:c3138ffd0de0
7066 } 7066 }
7067 } 7067 }
7068 else if([object isKindOfClass:[NSScrollView class]]) 7068 else if([object isKindOfClass:[NSScrollView class]])
7069 { 7069 {
7070 NSScrollView *sv = handle; 7070 NSScrollView *sv = handle;
7071 id dv = [sv documentView]; 7071 DWMLE *mle = [sv documentView];
7072 if(bg) 7072 if(bg)
7073 { 7073 {
7074 [dv setBackgroundColor:bg]; 7074 [mle setBackgroundColor:bg];
7075 } 7075 }
7076 // TODO don't know how to set foreground colour of documentview 7076 if(fg)
7077 {
7078 NSTextStorage *ts = [mle textStorage];
7079 [ts setForegroundColor:fg];
7080 }
7077 } 7081 }
7078 return 0; 7082 return 0;
7079 } 7083 }
7080 7084
7081 /* 7085 /*