# HG changeset patch # User William Bowling # Date 1257115010 -39600 # Node ID 3b387703ca14cd2a247bf89c4ea0222f66aca2fd # Parent dbc1dde294bdfb1af59f9719c6770ad38bc1ec52 Backed out changeset dbc1dde294bd diff -r dbc1dde294bdfb1af59f9719c6770ad38bc1ec52 -r 3b387703ca14cd2a247bf89c4ea0222f66aca2fd Source/KNShelfSplitView.h --- a/Source/KNShelfSplitView.h Tue Oct 27 13:19:26 2009 -0400 +++ b/Source/KNShelfSplitView.h Mon Nov 02 09:36:50 2009 +1100 @@ -65,6 +65,7 @@ BOOL drawLine; BOOL shelfOnRight; + NSString *stringValue; NSAttributedString *attributedStringValue; CGFloat stringHeight; diff -r dbc1dde294bdfb1af59f9719c6770ad38bc1ec52 -r 3b387703ca14cd2a247bf89c4ea0222f66aca2fd Source/KNShelfSplitView.m --- a/Source/KNShelfSplitView.m Tue Oct 27 13:19:26 2009 -0400 +++ b/Source/KNShelfSplitView.m Mon Nov 02 09:36:50 2009 +1100 @@ -709,9 +709,12 @@ #pragma mark Status string - (void)setResizeThumbStringValue:(NSString *)inString { - if (attributedStringValue && ![inString isEqualToString:[attributedStringValue string]]) { + if (![inString isEqualToString:stringValue]) { + [stringValue release]; + stringValue = [inString copy]; + [attributedStringValue release]; - if (inString) { + if (stringValue) { NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSParagraphStyle styleWithAlignment:NSLeftTextAlignment lineBreakMode:NSLineBreakByTruncatingTail], NSParagraphStyleAttributeName, @@ -719,7 +722,7 @@ nil]; stringHeight = [NSAttributedString stringHeightForAttributes:attributes]; - attributedStringValue = [[NSAttributedString alloc] initWithString:[inString retain] + attributedStringValue = [[NSAttributedString alloc] initWithString:stringValue attributes:attributes]; } else { attributedStringValue = nil;