#import "ITCategory-NSView.h"
-
-@implementation NSView (ITCategory)
+@implementation NSView (ITKitCategory)
- (void)removeAllSubviews {
[[self subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
}
-@end
+- (void)removeSubview:(NSView *)subview {
+ if ([subview superview] == self) {
+ [subview removeFromSuperview];
+ }
+}
+
+@end
\ No newline at end of file