I have a managed-object X with a relationship to a list of [1:N) Y objects. (X and Y objects are stored using Core Data)
I would like to find the proper (and more convenient) way to obtain the latest inserted Y object. The "name" attribute of this Y object should be shown in the graphic possibly through Cocoa Bindings.
I know that all Ys are inserted into a NSSet, so there is no defined order. However, each Y has a "timestamp" attribute, so when I say "the latest inserted Y object" I actually mean "the Y with the latest timestamp".
Any help will be appreciated: I searched all the documentation but have not found anything that could help me.
In The KVC Programming Guide's Collection Operators section, the description for @max says