Permalink
Browse files

adding layout methods and view controller property to header

  • Loading branch information...
1 parent 60f855c commit a2cbab8cd3051f09469247ef8b1ad6ad4a11edd4 @Machx committed Oct 31, 2012
Showing with 6 additions and 3 deletions.
  1. +5 −2 Rebel/NSView+RBLViewControllerAdditions.h
  2. +1 −1 Rebel/NSView+RBLViewControllerAdditions.m
@@ -10,7 +10,10 @@
@interface NSView (NSView_RBLViewControllerAdditions)
--(id)viewController;
--(void)setViewController:(id)newViewController;
+- (void)layoutSubviews;
+- (void)layoutIfNeeded;
+- (void)setNeedsLayout;
+
+@property (nonatomic, assign) IBOutlet NSViewController *viewController;
@end
@@ -60,7 +60,7 @@ - (void)custom_setBounds:(NSRect)newBounds {
- (void)custom_setFrame:(NSRect)newFrame {
[self custom_setFrame:newFrame];
-
+
[self setNeedsLayout];
}

0 comments on commit a2cbab8

Please sign in to comment.