Feb 23, 2009, 06:47 AM
Is it even possible?
Feb 23, 2009, 07:43 AM
Feb 23, 2009, 08:01 AM
There is very little documentation on it, and no examples to mimic/alter.
Feb 23, 2009, 08:28 AM
[NSString stringWithFormat:@"document.write(\"%d\");", var]];
Feb 23, 2009, 09:01 AM
Alright, Im getting somewhere - thanks for your help :)
Finally, just let me get this straight: in the code you substitute the %d with var?
Feb 23, 2009, 10:18 AM
That's right. In this case, "var" is an integer. See stringWithFormat (http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/clm/NSString/stringWithFormat:) and String Format Specifiers (http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html) for more.
Feb 23, 2009, 01:04 PM
Great - thanks again for the help :) Much appreciated!