Page 1 of 1

[Feature Request] SFSObject/SFSArray check if match

Posted: 06 May 2011, 22:08
by rjgtav
Hi guys. Today i was making an app when i realized that i needed to check if two SFSObjects matched. To achieve that i had to convert the SFSObjects to Objects and then i had to create a function that checked if the two objects matched.
This worked fine, but i was wondering what about if there was a built.in fuction inside both SFSObject and SFSArray classes that would check if two of the same type matched?

P.S. By match, i mean checking if two objects/arrays have the same values

Posted: 07 May 2011, 13:52
by Lapo
I am sorry I don't think it is possible to create a generic comparison function due to the nature of the SFSObject which can also transport class instances, nested objects etc...

Posted: 07 May 2011, 14:08
by rjgtav
Ok, no problem :-)