Fixing the effects so they work on multiple monitors where the screen
[ITKit.git] / ITCategory-NSView.m
index b2c8c0c..8c6ed90 100755 (executable)
@@ -7,4 +7,10 @@
     [[self subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
 }
 
+- (void)removeSubview:(NSView *)subview {
+       if ([subview superview] == self) {
+               [subview removeFromSuperview];
+       }
+}
+
 @end