git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Huge audit of ITKit, mostly everything has been updated to current coding
[ITKit.git]
/
ITCategory-NSView.m
diff --git
a/ITCategory-NSView.m
b/ITCategory-NSView.m
old mode 100755
(executable)
new mode 100644
(file)
index
b2c8c0c
..
be4332b
--- a/
ITCategory-NSView.m
+++ b/
ITCategory-NSView.m
@@
-1,10
+1,15
@@
#import "ITCategory-NSView.h"
#import "ITCategory-NSView.h"
-
-@implementation NSView (ITCategory)
+@implementation NSView (ITKitCategory)
- (void)removeAllSubviews {
[[self subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
}
- (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