git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing the effects so they work on multiple monitors where the screen
[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