KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Currently I'm trying to save an NSRect to my user defaults. Right now I'm using an NSValue to wrap it as an object then save it into the user defaults as an object with the following code: [userDefaults setObject:[NSValue valueWithRect:rect forKey:@"Key"]]; However, when I run it, I get an error that says: [NSUserDefaults setObject:forKey:]: Attempt to insert non-property value 'NSRect: {{0, 0}, {50, 50}}' of class 'NSConcreteValue'. Does anyone know how I can fix this?
Tags (comma-separated)
Save Edits
Cancel