Sha256: 935f43fbd29c028214d03cb7d6ebb8aee6ecbe42d7e828871e05adb180cca238

Contents?: true

Size: 577 Bytes

Versions: 11

Compression:

Stored size: 577 Bytes

Contents

#import "main.h"

int main(void)
{
  NSAutoreleasePool *pool    = [ [ NSAutoreleasePool alloc ] init ];
  NSString *text             = @"Written by Objective-C";
  NSString *filename         = @"./rake-builder-testfile.txt";
  NSData *data               = [ text dataUsingEncoding: NSASCIIStringEncoding ];
  NSFileManager *filemanager = [NSFileManager defaultManager];
  BOOL written               = [ filemanager createFileAtPath: filename contents: data attributes: nil ];
  if( ! written ) {
    NSLog( @"Failed to write to file" );
  }

  [ pool release ];

  return 0;
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rake-builder-0.7.0 spec/objective_c_project/main.m
rake-builder-0.0.19 spec/objective_c_project/main.m
rake-builder-0.0.18 spec/objective_c_project/main.m
rake-builder-0.0.17 spec/objective_c_project/main.m
rake-builder-0.0.16 spec/objective_c_project/main.m
rake-builder-0.0.15 spec/objective_c_project/main.m
rake-builder-0.0.14 spec/objective_c_project/main.m
rake-builder-0.0.13 spec/objective_c_project/main.m
rake-builder-0.0.12 spec/objective_c_project/main.m
rake-builder-0.0.11 spec/objective_c_project/main.m
rake-builder-0.0.10 spec/objective_c_project/main.m