I don’t understand what the line [nextCard.name caseInsensitiveCompare:theName] == **NSOrderedSame** of the instance method [nextCard.name caseInsensitiveCompare:theName] == **NSOrderedSame** .
What should nextCard.name caseInsensitiveCompare:theName ?
I would be grateful for chewing the mechanics of this piece.
The method itself:
-(AddressCard *) lookup: (NSString *) theName { for (AddressCard *nextCard in book) { if ([nextCard.name caseInsensitiveCompare:theName] == NSOrderedSame) return nextCard; } return nil; }