[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[NSMutableAttributedString addAttributes: range:]
From: |
Michael Scheibler |
Subject: |
[NSMutableAttributedString addAttributes: range:] |
Date: |
Fri, 29 Jun 2001 12:51:50 +0200 |
if (aRange.location <= 0 || NSMaxRange(aRange) > tmpLength)
should be
if (aRange.location < 0 ....
and thus (aRange.location is unsigned) can be left away:
if (NSMaxRange(aRange) > tmpLength)
declaration of NSRange:
typedef struct _NSRange NSRange;
struct _NSRange
{
unsigned int location;
unsigned int length;
};
Michael Scheibler
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [NSMutableAttributedString addAttributes: range:],
Michael Scheibler <=