Skip to content

Commit

Permalink
Added comment explaining the run loop business in CPScrollView.
Browse files Browse the repository at this point in the history
Reviewed by me.
  • Loading branch information
Francisco Ryan Tolmasky I committed Jan 4, 2009
1 parent 42451ec commit b9cd78f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AppKit/CPScrollView.j
Expand Up @@ -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]];
}

Expand Down

0 comments on commit b9cd78f

Please sign in to comment.