Added an instance method to NSMenu that will remove all of the items in
[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