views:

49

answers:

1

I'm wondering if there is a diff API in Cocoa, I've attempted to google it but its not bring back any results that are useful.

If there isn't an API for this would it be better to call diff from /usr/bin/ or to write my own diff.

All I need it for is text-files with a possibility of branching out into binaries and folders later.

Thanks

James

+2  A: 

You would normally just use diff itself. All the command line tools are accessible via NSTask and NSPipe. It's trivial to write a wrapper class that manages it all for you.

TechZen
I thought this might be the answer, I just hoped that there would be a nice API for it!
James Raybould
"It's trivial to write a wrapper class that manages it all for you." [ citation needed ] ;-)
Joshua Nozzi