So I thought, how convenient, I can just save a NSRect using NSValue except it was not working, the console said "... this archiver cannot encode structs". Well, dammit, NSValue says it conforms to NSCoding protocol, but when it comes to encoding a NSRect, it chooses not to. Where in the docs does it say that? I looked around but it was not evident anywhere.
Suffice it to say, I simply created my own specific NSRect wrapper object that encodes the elements as NSNumbers, took me all of 20 minutes (because I had to put in every possible method I could think of for the object).
But why can they not at least put a line in somewhere to let a poor, lazy coder know that this will spit up on you?
Suffice it to say, I simply created my own specific NSRect wrapper object that encodes the elements as NSNumbers, took me all of 20 minutes (because I had to put in every possible method I could think of for the object).
But why can they not at least put a line in somewhere to let a poor, lazy coder know that this will spit up on you?