There is no way to do this directly with NSFileManager. The setAttributes: ofItemAtPath: error: method terminates a bunch of BSD-based functions, such as utimes, setxattr, chown, etc. All of which follow symbolic links, and not directly to them.
, BSD. " ", , lchown, . , , , . fd-based futimes. :
int fd = open([NSFileManager fileSystemRepresentationWithPath:path], O_RDONLY | O_SYMLINK);
futimes(fd, 0);
close(fd);
, setAttributes: ofSymlinkAtPath: : NSFileManager, futimes, fchflags, fsetxattr ..
, ( , ..), , , , OS X . (Linux , , f *, BSD .)
, API- API NSURL , , ( Mac, ):
[[NSURL fileURLWithPath:path isDirectory:NO] setResourceValue:[NSDate date] forKey:NSURLContentModificationDateKey error:nil];