I have an nsoperation class where I want to store that running operation into nsuserdefaults for later reference. How do I do that? Please help.
Share
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.
NSOperation is not compliant to NSCoding. You will have to encode/decode it yourself. However, think about what you are trying to accomplish here. There must be something really special or really wrong for you to need to save an NSOperation.