On Sep 20, 2014, at 1:43 PM, Scott Ribe <scott_r...@elevated-dev.com> wrote:

> On Sep 20, 2014, at 11:13 AM, 2551 <2551p...@gmail.com> wrote:
> 
>> For example:
>> 
>>  NSString *mary = @"mary had a little lamb, a little lamb she had";
>>   NSString *scary = @"mary had a little lamb, a little naughty fella of a 
>> lamb she had for sure";
>>   NSString *isDifferent = [self getDifference:mary and: scary];
>>   NSLog(@"%@", isDifferent);
>> 
>> The method I posted below produces the difference that I want ("naughty 
>> fella of a for sure"). But I want to know if there's a more orthodox and 
>> robust solution. 
> 
> That's not even remotely close to a definition of what you mean. What about:
> 
> @"mary had a little lamb, a little naughty lamb she had"
> 
> vs
> 
> @"mary had a little lamb, a little fella of a lamb she had for sure"
> 
> ?
> 
> Or:
> 
> @"mary had a little lamb, a naughty little lamb she had"
> 
> vs
> 
> @"mary had a big lamb, a little fella of a lamb she had for sure"
> 
> There is no simple definition of "the difference between two strings", and I 
> don't think it's a basic need at all.

Exactly. While it may seem that it’s a simple question, we actually have no 
idea what you mean unless you tell us. 

> 
> -- 
> Scott Ribe
> scott_r...@elevated-dev.com
> http://www.elevated-dev.com/
> (303) 722-0567 voice
> 
> 
> 
> 
> 
> _______________________________________________
> 
> 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/sevenbitstech%40gmail.com
> 
> This email sent to sevenbitst...@gmail.com

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

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

Reply via email to