Commits

Anonymous committed c89355e

Fixed a design-time bug: if a window in IB with a bottom bar was closed and then opened, its bottom bar would disappear

Comments (0)

Files changed (4)

BWAddMiniBottomBar.m

 		[[self window] setBottomCornerRounded:NO];
 }
 
+- (void)drawRect:(NSRect)aRect
+{
+	if ([[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
+		[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];	
+}
+
 - (NSRect)bounds
 {
 	return NSMakeRect(-10000,-10000,0,0);

BWAddRegularBottomBar.m

 	[[self window] setContentBorderThickness:34	forEdge:NSMinYEdge];
 }
 
+- (void)drawRect:(NSRect)aRect
+{
+	if ([[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
+		[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];	
+}
+
 - (NSRect)bounds
 {
 	return NSMakeRect(-10000,-10000,0,0);

BWAddSheetBottomBar.m

 		[[self window] setBottomCornerRounded:NO];
 }
 
+- (void)drawRect:(NSRect)aRect
+{
+	if ([[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
+		[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];	
+}
+
 - (NSRect)bounds
 {
 	return NSMakeRect(-10000,-10000,0,0);

BWAddSmallBottomBar.m

 	[[self window] setContentBorderThickness:24	forEdge:NSMinYEdge];
 }
 
+- (void)drawRect:(NSRect)aRect
+{
+	if ([[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
+		[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];	
+}
+
 - (NSRect)bounds
 {
 	return NSMakeRect(-10000,-10000,0,0);