Huge audit of ITKit, mostly everything has been updated to current coding
[ITKit.git] / ITCategory-NSView.m
old mode 100755 (executable)
new mode 100644 (file)
index b2c8c0c..be4332b
@@ -1,10 +1,15 @@
 #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