X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/22a86e1af594d77fde7f056cf5152478f14dafbf..3055b035aa851467097d35d886890f272dc90ee7:/ITCategory-NSView.m diff --git a/ITCategory-NSView.m b/ITCategory-NSView.m index b2c8c0c..8c6ed90 100755 --- a/ITCategory-NSView.m +++ b/ITCategory-NSView.m @@ -7,4 +7,10 @@ [[self subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; } +- (void)removeSubview:(NSView *)subview { + if ([subview superview] == self) { + [subview removeFromSuperview]; + } +} + @end