Skip to content

Instantly share code, notes, and snippets.

@JoshOldenburg
Created July 1, 2014 14:44
Show Gist options
  • Save JoshOldenburg/b475ca7322d5f8aa4d5f to your computer and use it in GitHub Desktop.
Save JoshOldenburg/b475ca7322d5f8aa4d5f to your computer and use it in GitHub Desktop.
Objective-C simplified NSComparisonResult
typedef NS_ENUM(NSInteger, JODateComparisonResult) {JODateBefore = -1L, JODateSame, JODateAfter};
typedef NS_ENUM(NSInteger, JONumericalComparisonResult) {JONumericallySmaller = -1L, JONumericallyEqual, JONumericallyGreater};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment