|
From: | Matthias Hengartner |
Subject: | NSStringWithRect formats |
Date: | Wed, 20 Jul 2005 14:38:57 +0200 |
Hello,
There are 3 (or more?) different formats produced by "NSStringFromRect"
GNUstep, OPENSTEP and MacOSX:
a)
{x=1; y=2; width=3; height=4}
b)
{x = 1; y = 2; width = 3; height = 4}
c)
{{1, 2}, {3, 4}}
- GNUstep produces a), but can read a), b) and c)
- OPENSTEP (version 4.2 for Windows) produces b) and can read only b)
- MacOSX produces c), but can read a), b) and c)
("read" means parse with NSRectFromString)
The same applies also to "NSStringFromPoint" and "NSStringFromSize" - and
probably others. Since format b) can be read by all 3 platforms, it would be reasonable to
use this in GNUtep (As you can see, the differences between a) and b) are only
the blanks).
But I don't know if there are other versions of OPENSTEP or MacOSX which
aren't compatible to format b) ??
If not, I'll suggest a bugfix for NSStringFromRect (and the other
functions).
Furthermore, the Method "encodeRect:withName:" (etc.) from GMArchiver needs
to be changed, too.
Best regards from Zurich,
Matthias Hengartner
-- **************************** Matthias Hengartner IVT ETH Zürich hengartner@ivt.baug.ethz.ch ++ 41 44 633 68 16 **************************** |
[Prev in Thread] | Current Thread | [Next in Thread] |