diff options
| author | nyamatongwe <unknown> | 2009-09-04 13:10:56 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-09-04 13:10:56 +0000 |
| commit | d5e42b78a2b7564c7e3a18daf67a8dea99d28724 (patch) | |
| tree | 14f95125eabdb66adbac884b9e709b2f187da42d /cocoa/InfoBar.mm | |
| parent | d31af315a209ab200faa4f6c1d50ce0b4ddee7ca (diff) | |
| download | scintilla-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.mm | 4 |
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]; } //-------------------------------------------------------------------------------------------------- |
