You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (originalIndex < oldCount) {
const id n = newArray[i];
const id o = oldArray[originalIndex];
switch (option) {
case IGListDiffPointerPersonality:
// flag the entry as updated if the pointers are not the same
if (n != o) {
entry->updated = YES;
}
break;
case IGListDiffEquality:
// use -[IGListDiffable isEqualToDiffableObject:] between both version of data to see if anything has changed
// skip the equality check if both indexes point to the same object [if (![n isEqualToDiffableObject:o]) **{ // there should be like this?it's not work,when i extends isEqualToDiffableObject,i wanna same data,but i can control it refresh**
entry->updated = YES;
}
break;
} }
The text was updated successfully, but these errors were encountered:
if (originalIndex < oldCount) {
const id n = newArray[i];
const id o = oldArray[originalIndex];
switch (option) {
case IGListDiffPointerPersonality:
// flag the entry as updated if the pointers are not the same
if (n != o) {
entry->updated = YES;
}
break;
case IGListDiffEquality:
// use -[IGListDiffable isEqualToDiffableObject:] between both version of data to see if anything has changed
// skip the equality check if both indexes point to the same object
[if (![n isEqualToDiffableObject:o]) **{ // there should be like this?it's not work,when i extends isEqualToDiffableObject,i wanna same data,but i can control it refresh**
entry->updated = YES;
}
break;
}
}
The text was updated successfully, but these errors were encountered: