Clean bindings with structs
- by andyvn22
I have a model class for which it makes quite a lot of sense to have NSSize and NSPoint instance variables. This is lovely.
I'm trying to create an editing interface for this object. I'd like to bind to size.width and whatnot. This, of course, doesn't work.
What's the cleanest, most Cocoa-y solution to this problem? Of course I could write separate accessors for the individual members of every struct I use, but it seems like there should be a better solution.