[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSAttributedString (Foundation) bug
From: |
Ludovic Marcotte |
Subject: |
NSAttributedString (Foundation) bug |
Date: |
Fri, 7 Dec 2001 14:31:52 -0500 (EST) |
Hi,
In NSAttributedString: -initWithCoder we have:
...
m = [m initWithString: string attributes: nil];
[m setAttributes: attrs range: r];
while (index < length);
{
[aDecoder decodeValueOfObjCType: @encode(unsigned int)
at: &index];
...
we should remove the ; after while (index < length), otherwise, it'll
endlessly loop if the attributed string has been archived with different
attributes.
Ludo
--
Live as if you were to die tomorrow.
Learn as if you were to live forever.
- Gandhi
- NSAttributedString (Foundation) bug,
Ludovic Marcotte <=