diff options
author | Johan Paulsson <gonz@badcode.net> | 2014-03-25 21:14:47 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@badcode.net> | 2014-03-25 21:14:47 +0000 |
commit | db9056504a45f3df48952b79995781a85514f8ba (patch) | |
tree | e7a2e0761f9f9a23653abedb91f823afc4b82ca3 | |
parent | 53009ac3c49cab59f4e5384d0500a5729e847555 (diff) |
Changed deprecated method
Changed directoryContentsAtPath: deprecated in 10.5 to contentsOfDirectoryAtPath:error: introduced in 10.5
-rw-r--r-- | tikzit/src/common/Shape.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tikzit/src/common/Shape.m b/tikzit/src/common/Shape.m index eb466e2..5dc25e3 100644 --- a/tikzit/src/common/Shape.m +++ b/tikzit/src/common/Shape.m @@ -88,7 +88,8 @@ NSDictionary *shapeDictionary = nil; + (void)addShapesInDir:(NSString*)shapeDir to:(NSMutableDictionary*)shapeDict { NSFileManager *fileManager = [NSFileManager defaultManager]; - NSArray *files = [fileManager directoryContentsAtPath:shapeDir]; + NSError *err = nil; + NSArray *files = [fileManager contentsOfDirectoryAtPath:shapeDir error:&err]; if (files != nil) { NSString *nm; |