From b9cd78fde9e69b9638258f05f115ae746fb1ce39 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Sun, 4 Jan 2009 15:37:42 -0800 Subject: [PATCH] Added comment explaining the run loop business in CPScrollView. Reviewed by me. --- AppKit/CPScrollView.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPScrollView.j b/AppKit/CPScrollView.j index 5d3cbfe39..a3117df75 100644 --- a/AppKit/CPScrollView.j +++ b/AppKit/CPScrollView.j @@ -659,6 +659,7 @@ var CPScrollViewContentViewKey = "CPScrollViewContentView", _hasHorizontalScroller = [aCoder decodeBoolForKey:CPScrollViewHasHScrollerKey]; _autohidesScrollers = [aCoder decodeBoolForKey:CPScrollViewAutohidesScrollerKey]; + // Do to the anything goes nature of decoding, our subviews may not exist yet, so layout at the end of the run loop when we're sure everything is in a correct state. [[CPRunLoop currentRunLoop] performSelector:@selector(reflectScrolledClipView:) target:self argument:_contentView order:0 modes:[CPDefaultRunLoopMode]]; }