Revision: 3120
http://skim-app.svn.sourceforge.net/skim-app/?rev=3120&view=rev
Author: hofman
Date: 2007-11-01 06:43:01 -0700 (Thu, 01 Nov 2007)
Log Message:
-----------
Fix removing subcontrol edgeview from scrollview.
Modified Paths:
--------------
trunk/NSScrollView_SKExtensions.m
Modified: trunk/NSScrollView_SKExtensions.m
===================================================================
--- trunk/NSScrollView_SKExtensions.m 2007-11-01 13:19:41 UTC (rev 3119)
+++ trunk/NSScrollView_SKExtensions.m 2007-11-01 13:43:01 UTC (rev 3120)
@@ -215,18 +215,13 @@
}
- (void)setSubcontrols:(NSArray *)newSubControls {
- BDSKEdgeView *edgeView = nil;
NSMutableArray *subcontrols = (NSMutableArray
*)CFDictionaryGetValue(scrollViewSubcontrols, self);
if (subcontrols == nil && [newSubControls count]) {
subcontrols = [NSMutableArray array];
CFDictionarySetValue(scrollViewSubcontrols, self, subcontrols);
}
- if ([subcontrols count]) {
- [subcontrols
makeObjectsPerformSelector:@selector(removeFromSuperview)];
- edgeView = (BDSKEdgeView *)[[[subcontrols lastObject] superview]
superview];
- [edgeView removeFromSuperview];
- }
+ [[[[subcontrols lastObject] superview] superview] removeFromSuperview];
[subcontrols setArray:newSubControls];
if ([subcontrols count] == 0 && subcontrols) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit