Core Data Change property value when another property changes
Posted
by user320587
on Stack Overflow
See other posts from Stack Overflow
or by user320587
Published on 2010-06-12T22:23:26Z
Indexed on
2010/06/12
22:33 UTC
Read the original article
Hit count: 243
Hi, I have a Core Data Entity which has three properties startDate, endDate and duration. All three properties are persistent properties. I would like to know how I can calculate and update the duration property whenever the value for startDate and endDate changes?
BTW, I won't be able to make the duration as transient property since I have to use the property for sorting in my table view?
Any help is greatly appreciated
Thanks, Javid
© Stack Overflow or respective owner