discuss-gnustep
[Top][All Lists]
Advanced

[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" <lloyd@nova-mind.com>
To: "GNUstep Discussion" <discuss-gnustep@gnu.org>
Sent: Wednesday, January 04, 2006 1:36 PM
Subject: what does stringWithFormat: %g doing? (Windows question)


Looking at NSGeometry I found that:
===
NSString*
NSStringFromRect(NSRect aRect)
{
 setupCache();
 if (GSMacOSXCompatibleGeometry() == YES)
   return [NSStringClass stringWithFormat:
     @"{{%g, %g}, {%g, %g}}",
     aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height];
 else
   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?


Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep





reply via email to

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