aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/InfoBar.mm
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-09-04 13:10:56 +0000
committernyamatongwe <unknown>2009-09-04 13:10:56 +0000
commitd5e42b78a2b7564c7e3a18daf67a8dea99d28724 (patch)
tree14f95125eabdb66adbac884b9e709b2f187da42d /cocoa/InfoBar.mm
parentd31af315a209ab200faa4f6c1d50ce0b4ddee7ca (diff)
downloadscintilla-mirror-d5e42b78a2b7564c7e3a18daf67a8dea99d28724.tar.gz
Fix in the InfoBar to avoid setting a cell class for the entire application.
Fixed memory leak re. notification center. Cursor handling did not properly retain the used cursor image.
Diffstat (limited to 'cocoa/InfoBar.mm')
-rw-r--r--cocoa/InfoBar.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm
index 90b51c373..a96634dd1 100644
--- a/cocoa/InfoBar.mm
+++ b/cocoa/InfoBar.mm
@@ -188,6 +188,7 @@ static float BarFontSize = 10.0;
[mZoomPopup release];
// 2) The caret position label.
+ Class oldCellClass = [NSTextField cellClass];
[NSTextField setCellClass: [VerticallyCenteredTextFieldCell class]];
mCaretPositionLabel = [[NSTextField alloc] initWithFrame: NSMakeRect(0.0, 0.0, 50.0, 1.0)];
@@ -219,6 +220,9 @@ static float BarFontSize = 10.0;
[self addSubview: mStatusTextLabel];
[mStatusTextLabel release];
+
+ // Restore original cell class so that everything else doesn't get broken
+ [NSTextField setCellClass: oldCellClass];
}
//--------------------------------------------------------------------------------------------------