I am moving a file within my project and I get: Error Domain=NSCocoaErrorDomain Code=514 "The operation couldn’t be completed. (Cocoa error 514.)"
[[NSFileManager defaultManager] moveItemAtURL:oldLocation
toURL:[NSURL fileURLWithPath:newLocation]
error:&error]
The locations I am using are valid and what is causing the error is when the file name is over 100 characters. Is there a unwritten rule about file name length?