How can I get the common ancestor directory for two or more files in Cocoa/Obj-C?

Posted by Alexsander Akers on Stack Overflow See other posts from Stack Overflow or by Alexsander Akers
Published on 2010-05-16T23:52:05Z Indexed on 2010/05/17 0:00 UTC
Read the original article Hit count: 286

Filed under:
|
|
|
|

I have a bunch of files, either NSStrings or NSURLs (it doesn't matter; they are, for the most part, interchangeable), and I need a way to find the common ancestor directory. Does anyone know how to do this?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c