add warning

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32526 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-03-10 08:18:52 +00:00
parent 9810a1ec9c
commit 2539d75717

View file

@ -583,6 +583,10 @@ _attributesAtIndexEffectiveRange(
ADDOBJECT(info);
RELEASE(info);
}
/* WARNING ... NSLayoutManager depends on the fact that we create the
* _textChars instance variable by copying the aString argument to get
* its own string subclass into the attributed string.
*/
if (aString == nil)
_textChars = [[NSMutableString allocWithZone: z] init];
else