isEqual:

Returns a Boolean value that indicates whether the receiver and a given object have identical URL strings and base URLs.

Declaration

- (BOOL)isEqual:(id)anObject

Parameters

anObject

The object to be compared to the receiver.

Return Value

YES if the receiver and anObject are equal, otherwise NO.

Overview

This method defines what it means for instances to be equal. Two NSURLs are considered equal if and only if they return identical values for both baseURL and relativeString.