[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what does stringWithFormat: %g doing? (Windows question)

From: Lloyd Dupont
Subject: Re: what does stringWithFormat: %g doing? (Windows question)
Date: Wed, 4 Jan 2006 15:51:09 +1000

Just figured out the source of the problem!

----- Original Message ----- From: "Lloyd Dupont" <address@hidden>
To: "GNUstep Discussion" <address@hidden>
Sent: Wednesday, January 04, 2006 1:36 PM
Subject: what does stringWithFormat: %g doing? (Windows question)

Looking at NSGeometry I found that:
NSStringFromRect(NSRect aRect)
 if (GSMacOSXCompatibleGeometry() == YES)
   return [NSStringClass stringWithFormat:
     @"{{%g, %g}, {%g, %g}}",
     aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height];
   return [NSStringClass stringWithFormat:
     @"{x = %g; y = %g; width = %g; height = %g}",
     aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height];

Thta raises 2 questions:
1. what is GSMacOSXCompatibleGeometry() ? is it always TRUE/YES?
2. what is the %g format?
I ask that because one application I have written which parses this string, fails on my dad's computer (which is France) but succeed here (in Australia), so I was wondering if there was some kind of internationalizatino involved?

Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software

Discuss-gnustep mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]