FROM : Thomas Engelmeier
DATE : Wed Apr 02 18:58:58 2008
On 02.04.2008, at 18:12, Ben Lachman wrote:
> I think the easiest way to encode/decode NSRects for storage is
> NSStringFromRect() and NSRectFromString(). Then you can just
> implement a custom accessor for the property that converts in the
> direction you need.
That potentially means opening Pandoras can to localisation issues.
Any time you go that route, be sure to check that code with switching
decimal separators.
In my opinion it sucks like hell when your Pages document containing a
table has all numeric data messed up due to "unparseable" numbers...
Regards,
Tom_E
DATE : Wed Apr 02 18:58:58 2008
On 02.04.2008, at 18:12, Ben Lachman wrote:
> I think the easiest way to encode/decode NSRects for storage is
> NSStringFromRect() and NSRectFromString(). Then you can just
> implement a custom accessor for the property that converts in the
> direction you need.
That potentially means opening Pandoras can to localisation issues.
Any time you go that route, be sure to check that code with switching
decimal separators.
In my opinion it sucks like hell when your Pages document containing a
table has all numeric data messed up due to "unparseable" numbers...
Regards,
Tom_E
| Related mails | Author | Date |
|---|---|---|
| Daniel Thorpe | Apr 2, 13:28 | |
| Felix Franz | Apr 2, 15:11 | |
| Ben Lachman | Apr 2, 18:12 | |
| Thomas Engelmeier | Apr 2, 18:58 | |
| Uli Kusterer | Apr 2, 19:33 | |
| Daniel Thorpe | Apr 3, 11:31 | |
| Adam P Jenkins | Apr 9, 07:16 | |
| stephen joseph but… | Apr 9, 07:30 | |
| Adam P Jenkins | Apr 9, 14:43 |






Cocoa mail archive

