Documentation on core data derived attributes

Hi,


after having watched session 230 from this years WWDC (at around 19:00) I wanted to play with the mentioned derived attributes. Sadly I can't find any documentation anywhere, besides the overview from the session in which areas derived attributes may be used:


> The other kind of derivation is a simple transformation of the fields, such as lower casing a tag's name, or canonicalizing some Unicode string. We just saw an example of an aggregate function across a too many relationship in the demo. And lastly, there are global functions such as now that take no parameters at all, which are useful for things like keeping track of when an object was last updated. So now that our controller is wont for nothing, it's time to talk about some more advanced topics and scaling.


Specifically my problem is as follows: I have an item which has many states (over time). The item shall have a property "currentState" which is the latests' state mirrored into the item.


Thanks for your time and support.

Replies

I was wondering the same, you could tweet @numist who did the talk to find out why it hasn't been published.

Missing docs is also a good thing for Feedback Reporter.

Did you find more information ?


I tried to do some test and my app started crashing weirdly.

I haven't had a chance to test these out, but there is a list of function names in the Predicate Programming Guide, in the BNF Definition. Not sure if they all work, but it's worth trying them.

Also would love some documentation, wondering if it's possible to average a to-many attribute?

They just release the documentation.



https://developer.apple.com/documentation/coredata/nsderivedattributedescription



I wish they would release some examples, too.