Created
June 21, 2017 23:23
-
-
Save fernandojinzenji/39dc59b7fdf0b10479836a5ff5699d34 to your computer and use it in GitHub Desktop.
Week 4, Wednesday - Readings and Questions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question 1: | |
Before saving the object, it is necessary to convert its information to binary data. The same when reading information from | |
the disk. It is necessary to convert binary data to a "readable" object. | |
Question 2: | |
Failures can occur when the disk is corrupted or some external actions stops the operating system from save the data. You | |
should create a NSError instance and guide your user what should the correct procedure (like try again, restart the application, | |
etc). | |
Question 3: | |
NSUserDefault is basic a dictionary shared through the application. Instead of holding metadata information for a Entity, like | |
attributes with specific data types and relationships with other entities, NSUserDefault will only store key/value objects, | |
therefore is not recommended to persist model entities.It also does not accept custom objects and does not perform well with | |
Custom objects. | |
Question 4: | |
An image is stored inside the Resources structure in the Bundle Container of the app. | |
Question 5: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment