Source

BWToolkit / BWAddSheetBottomBar.m

Diff from to

File BWAddSheetBottomBar.m

 
 - (void)drawRect:(NSRect)aRect
 {
-	if ([[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
+	if ([self respondsToSelector:@selector(ibDidAddToDesignableDocument:)] && [[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
 		[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];	
 	
 	if ([[self window] isSheet] && [[self window] respondsToSelector:@selector(setMovable:)])