aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-03-13 09:55:50 +1100
committernyamatongwe <nyamatongwe@gmail.com>2012-03-13 09:55:50 +1100
commit595fc48ad6bc132e7b804d8e69afc4ab9e3dd59c (patch)
treee1b829d0596481a18e284b8896b37b6d2e8d5c4c /cocoa/ScintillaView.mm
parent9070ea289fa078a869d80b6ab1ae7c03af160cd8 (diff)
downloadscintilla-mirror-595fc48ad6bc132e7b804d8e69afc4ab9e3dd59c.tar.gz
Change name of the 'layout' method of ScintillaView and InfoBar to 'positionSubViews'
as 'layout' has been added to their superclass NSView in OS X 10.7. The existing 'layout' method interfered with the new automatic layout feature.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index 2a3546b7b..67d79665e 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -876,7 +876,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
{
[super viewDidMoveToWindow];
- [self layout];
+ [self positionSubViews];
// Enable also mouse move events for our window (and so this view).
[[self window] setAcceptsMouseMovedEvents: YES];
@@ -887,7 +887,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
/**
* Used to position and size the parts of the editor (content, scrollers, info bar).
*/
-- (void) layout
+- (void) positionSubViews
{
int scrollerWidth = [NSScroller scrollerWidth];
@@ -1000,7 +1000,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
[mVerticalScroller setHidden: hideScroller];
if (!hideScroller)
[mVerticalScroller setFloatValue: 0];
- [self layout];
+ [self positionSubViews];
}
if (!hideScroller)
@@ -1050,7 +1050,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
{
result = YES;
[mHorizontalScroller setHidden: hideScroller];
- [self layout];
+ [self positionSubViews];
}
if (!hideScroller)
@@ -1101,7 +1101,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
- (void) setFrame: (NSRect) newFrame
{
[super setFrame: newFrame];
- [self layout];
+ [self positionSubViews];
}
//--------------------------------------------------------------------------------------------------
@@ -1478,7 +1478,7 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
mInitialInfoBarWidth = [mInfoBar frame].size.width;
}
- [self layout];
+ [self positionSubViews];
}
}