Note that there are two differences, I would want to know: where string A says "this", string B says "that." So you have both "this" and 'that" for a difference. A lot of times, pre-optimizing your strings helps, meaning you first take out punctuation (mostly comma's) and remember where to put them back in. Also splitting may sometimes need NSRegularExpression instead of ComponentsSeparatedByString to be better. In general pre-optimizing is a necessity. In my experience, customizing a workplan between pre-optimizing and comparison/search based on the actual content gives the best results. It's more time-consuming though...
Verstuurd vanaf mijn iPhone > Op 21 sep. 2014 om 08:42 heeft 2551 <2551p...@gmail.com> het volgende > geschreven: > > >> On 21 Sep 2014, at 13:38, Diederik Meijer | Ten Horses >> <diede...@tenhorses.com> wrote: >> >> Meaning I would compare words and their index in an array of words created >> from the two strings. > > Thanks, Diederik. That's exactly the approach I took by using > NSMutableArray's -removeObject. > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/diederik%40tenhorses.com > > This email sent to diede...@tenhorses.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com