Bring the NSComparisonMethods informal protocol to iOS

Originator:gordon
Number:rdar://15263512 Date Originated:18-Oct-2013 01:40 PM
Status:Open Resolved:
Product:iOS SDK Product Version:Not Applicable
Classification:Enhancement Reproducible:Not Applicable
 
This is a duplicate of rdar://15263236

Mac developers benefit from this informal protocol to make code more readable. For example:

  [aDate isLessThan:anotherDate]

is much more readable than:

  [aDate compare:anotherDate] == NSOrderedAscending

or

  [aDate isEqual:[aDate earlierDate:anotherDate]]

iOS developers should have it just as easy.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!