Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-13493

Add isEqual method to NUXDocument

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.9.2
    • Component/s: iOS Client

      Description

      This makes it easier to find a doc in an NSArray of NUXDocument. Very useful when querying an NUXDocument in an NSArray of NUXDocument, like in:

      NUXDocuments *docs = ...
      . . .
      NUXDocument *oneDoc = ...
      . . .
      NSUInteger pos = [docs.entries indexOfObject:oneDoc];
      . . .
      

      This implementation of isEqual only compares UUID and changeToken.
      Tthis means the comparison is not strict. For example, you could have 2 different NUXDocument referencing the same document, but the user modified some values (dc:title, ...) in one of them => isEqual would still return YES.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: