NSKeyValueObservingOptionOld
Indicates that the change dictionary should contain the old attribute value, if applicable.
What does it mean old attribute value?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The observer is notified when an observed key path changes it’s value. The ´change` dictionary contains information related to how the observed key path has changed. This dictionary is only filled with the values according to the options that you provide when setting
NSKeyValueObservingOptionNew– Specifies that you want to have access to the new value that the key path changed into.NSKeyValueObservingOptionOld– Specifies that you want to have access to the old value that the key path changed from.If specified to be sent these old and/or new values are accessible from the
changedictionary using these keys:NSKeyValueChangeNewKey– To access the new value.NSKeyValueChangeOldKey– To access the old/previous value.