Le 27 mars 06 =E0 17:29, J.C.Burns a =E9crit :
> I'm trying to do what in pure Cocoa/Obj-C would be:
>
> hexColorString =3D @"#%02x%02x%02x";
> htmlString =3D [NSString hexColorString,[[form4 cellAtIndex:0]=20
> floatValue],[[form4 cellAtIndex:1]floatValue],[[form4 cellAtIndex:2]=20=
> floatValue]];
>
> But I understand from F-Script-talk digest, Vol 1 #85 on October =20
> 21, 2004
>
>> Currently F-Script does not support calling a method with variable
>> number of arguments.
>
> Has that changed?
F-Script still does not support calling a method with variable number =20=
of arguments.
> Or, more to the point, is there an alternative way to use something =20=
> like printf strings or use the stringWithFormat method?
A common way to create formated representations of numbers in F-=20
Script is to use the NSNumberFormatter class. It can do many kind of =20
formating but I don't think it create hexadecimal representations.
You may have to develop an ad-hoc method in Objective-C then call it =20
from F-Script.
Best,
Philippe=
|