Re: diff tool on iOS?

2014-08-14 Thread Koen van der Drift
For the record, I ended up using this: https://github.com/inquisitiveSoft/DiffMatchPatch-ObjC - Koen. On Aug 13, 2014, at 1:03 PM, Marco S Hyman wrote: > On Aug 13, 2014, at 7:54 AM, Koen van der Drift > wrote: > >> Any tips for where I can find the source code for BSD diff? I found the G

Re: diff tool on iOS?

2014-08-13 Thread Marco S Hyman
On Aug 13, 2014, at 7:54 AM, Koen van der Drift wrote: > Any tips for where I can find the source code for BSD diff? I found the GNU > diffutils already here: http://www.gnu.org/software/diffutils/. Try one of the bsd source repositories. An example that I'm familiar with is the OpenBSD tree.

Re: diff tool on iOS?

2014-08-13 Thread Koen van der Drift
Thanks the clarification, I misread the answer. Any tips for where I can find the source code for BSD diff? I found the GNU diffutils already here: http://www.gnu.org/software/diffutils/. - Koen. On Wed, Aug 13, 2014 at 10:41 AM, Sergio Campamá wrote: > I think he meant to replicate the dif

Re: diff tool on iOS?

2014-08-13 Thread Sergio Campamá
I think he meant to replicate the diff functionality inside your app, and handle the output your own way to display the results. AFAIK, you can't call any command line programs from an iOS app... -- Sergio Campamá sergiocamp...@gmail.com On Wed, Aug 13, 2014 a

Re: diff tool on iOS?

2014-08-13 Thread Koen van der Drift
I thought about diff, but can I use that without NSTask, etc which aren't available on iOS? Also came across this: https://github.com/inquisitiveSoft/DiffMatchPatch-ObjC, which could be useful. Thanks for your imput, - Koen. On Wed, Aug 13, 2014 at 9:03 AM, ChanMaxthon wrote: > I think you

Re: diff tool on iOS?

2014-08-13 Thread ChanMaxthon
I think you can embed code from BSD diff in your program. That is plain C and you just need to call it using your Objective-C code. Alternatively you can look into the implementation of BSD diff or GNU diffutils and rewrite it using Objective-C or Swift for your project. Sent from my iPad > On

diff tool on iOS?

2014-08-13 Thread Koen van der Drift
Is there any way to use a diff tool in an iOS app? My app at one point needs to find the difference between two large text files, and using diff or something similar may be a possible solution. Both files are downloaded as NSData objects from an external source, and right now I have converted them