Skip to content

Commit

Permalink
adding layout methods and view controller property to header
Browse files Browse the repository at this point in the history
  • Loading branch information
Machx committed Oct 31, 2012
1 parent 60f855c commit a2cbab8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Rebel/NSView+RBLViewControllerAdditions.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@


@interface NSView (NSView_RBLViewControllerAdditions) @interface NSView (NSView_RBLViewControllerAdditions)


-(id)viewController; - (void)layoutSubviews;
-(void)setViewController:(id)newViewController; - (void)layoutIfNeeded;
- (void)setNeedsLayout;

@property (nonatomic, assign) IBOutlet NSViewController *viewController;


@end @end
2 changes: 1 addition & 1 deletion Rebel/NSView+RBLViewControllerAdditions.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (void)custom_setBounds:(NSRect)newBounds {


- (void)custom_setFrame:(NSRect)newFrame { - (void)custom_setFrame:(NSRect)newFrame {
[self custom_setFrame:newFrame]; [self custom_setFrame:newFrame];

[self setNeedsLayout]; [self setNeedsLayout];
} }


Expand Down

0 comments on commit a2cbab8

Please sign in to comment.