2 // NSFileHandle+Formatting.m
9 #import <Foundation/Foundation.h>
10 #import "NSFileHandle+Formatting.h"
13 @implementation NSFileHandle (Formatting)
15 - (void) writeString: (NSString*) string {
16 [self writeData:[string dataUsingEncoding:NSUTF8StringEncoding]];
19 - (void) writeFormat: (NSString*) format, ... {
21 va_start(args, format);
23 NSString* formatted = [[NSString alloc] initWithFormat:format arguments:args];
27 [self writeString: formatted];
28 // Remove with <rdar://problem/28925164> Enable ARC wherever possible in Security.framework
29 #if !__has_feature(objc_arc)