# HG changeset patch # User William Bowling # Date 1257205667 -39600 # Node ID 93406ba193bff5e49869d5d55e87e1f39b284fa6 # Parent 43b440126614951af7807d4dde3e59af1776e85f # Parent b7529bc734c59831a392d7701eb3dff37a00f358 merge diff -r 43b440126614951af7807d4dde3e59af1776e85f -r 93406ba193bff5e49869d5d55e87e1f39b284fa6 Source/KNShelfSplitView.m --- a/Source/KNShelfSplitView.m Thu Oct 29 12:43:40 2009 -0400 +++ b/Source/KNShelfSplitView.m Tue Nov 03 10:47:47 2009 +1100 @@ -710,12 +710,9 @@ #pragma mark Status string - (void)setResizeThumbStringValue:(NSString *)inString { - if (![inString isEqualToString:stringValue]) { - [stringValue release]; - stringValue = [inString copy]; - - [attributedStringValue release]; - if (stringValue) { + if (!(attributedStringValue && [inString isEqualToString:[attributedStringValue string]])) { + if(attributedStringValue) [attributedStringValue release]; + if (inString) { NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSParagraphStyle styleWithAlignment:NSLeftTextAlignment lineBreakMode:NSLineBreakByTruncatingTail], NSParagraphStyleAttributeName, @@ -723,7 +720,7 @@ nil]; stringHeight = [NSAttributedString stringHeightForAttributes:attributes]; - attributedStringValue = [[NSAttributedString alloc] initWithString:stringValue + attributedStringValue = [[NSAttributedString alloc] initWithString:[inString retain] attributes:attributes]; } else { attributedStringValue = nil;