diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-11-28 04:00:37 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-11-28 04:00:37 +0000 |
commit | 380899d5f740f36a2e0339c617bbb400e5bda04a (patch) | |
tree | faab4f47324b811489071e585f4885884940170b /Foundation/GTMNSFileManager+PathTest.m | |
parent | 5cadf77481727a70f7cf7925e641e9a46f546ed6 (diff) |
[Author: thomasvl]
Update to some newer apis for the iPhone SDKs on the Xcode 3.2.x toolchain, the warnings don't happen on the 3.1.x tool chain.
R=dmaclach
DELTA=11 (8 added, 0 deleted, 3 changed)
Diffstat (limited to 'Foundation/GTMNSFileManager+PathTest.m')
-rw-r--r-- | Foundation/GTMNSFileManager+PathTest.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Foundation/GTMNSFileManager+PathTest.m b/Foundation/GTMNSFileManager+PathTest.m index db40c68..756eb54 100644 --- a/Foundation/GTMNSFileManager+PathTest.m +++ b/Foundation/GTMNSFileManager+PathTest.m @@ -141,7 +141,10 @@ } for (size_t j = 0; j < sizeof(testFiles) / sizeof(NSString*); j++) { NSString *testFile = [testDir stringByAppendingPathComponent:testFiles[j]]; - STAssertTrue([@"test" writeToFile:testFile atomically:YES], nil); + STAssertTrue([@"test" writeToFile:testFile + atomically:YES + encoding:NSUTF8StringEncoding + error:nil], nil); } } |