Some more code cleanup, converting spaces to tabs. Redid ITKit.h framework
[ITKit.git] / ITCategory-NSView.m
old mode 100755 (executable)
new mode 100644 (file)
index b2c8c0c..9016162
@@ -1,10 +1,15 @@
 #import "ITCategory-NSView.h"
 
-
-@implementation NSView (ITCategory)
+@implementation NSView (ITKitCategory)
 
 - (void)removeAllSubviews {
-    [[self subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
+       [[self subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
+}
+
+- (void)removeSubview:(NSView *)subview {
+       if ([subview superview] == self) {
+               [subview removeFromSuperview];
+       }
 }
 
-@end
+@end
\ No newline at end of file