what is the default saving location of NSCoding protocol?
Also, is there any way to change such a default location to say, the folder where the .app file is located?
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.
You can directly write your encoded object data encoded according NSCoding to a file using NSKeyedArchiver
Like this:
With
filenameyou can choose your file location (you may set it to the documents directory if you are on iOS).EDIT 1:
If you’d like to store in into NSUserDefault… do: