Browse files

Implement -[TUIView ancestorTUINSView] in terms of the nsView propert…

…y, instead of trying to traverse hostViews
  • Loading branch information...
1 parent 903908e commit f2d03eeea2ad012f13ab9f3be254d46366fe7713 @jspahrsummers jspahrsummers committed Jul 25, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/UIKit/TUIView+TUIBridgedView.m
View
6 lib/UIKit/TUIView+TUIBridgedView.m
@@ -142,11 +142,7 @@ - (void)ancestorDidLayout; {
}
- (TUINSView *)ancestorTUINSView; {
- id<TUIHostView> hostView = self.hostView;
- if (!hostView)
- return nil;
-
- return hostView.ancestorTUINSView;
+ return self.nsView;
}
- (id<TUIBridgedScrollView>)ancestorScrollView; {

0 comments on commit f2d03ee

Please sign in to comment.