git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added an instance method to NSMenu that will remove all of the items in
[ITKit.git]
/
ITCategory-NSView.m
diff --git
a/ITCategory-NSView.m
b/ITCategory-NSView.m
index
b2c8c0c
..
8c6ed90
100755
(executable)
--- 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