restorableStateKeyPaths versus invalidateRestorableState
restorableStateKeyPaths versus invalidateRestorableState
- Subject: restorableStateKeyPaths versus invalidateRestorableState
- From: Daryle Walker <email@hidden>
- Date: Sun, 21 Sep 2014 14:17:57 -0400
These are two methods in NSResponder and they deal with user-interface restore.
The docs say that +restorableStateKeyPaths can lead to not needing to use -encodeRestorableStateWithCoder: and -restoreStateWithCoder:. Since those key-path attributes are supposed to be watched with KVO, shouldn’t explicitly calling -invalidateRestorableState also be unnecessary (assuming full coverage)? Can anyone confirm?
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden