discuss-gnustep
[Top][All Lists]
Advanced

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

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


From: Lloyd Dupont
Subject: what does stringWithFormat: %g doing? (Windows question)
Date: Wed, 4 Jan 2006 13:36:22 +1000

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>




reply via email to

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