Clean bindings with structs

Posted by andyvn22 on Stack Overflow See other posts from Stack Overflow or by andyvn22
Published on 2010-05-02T18:39:57Z Indexed on 2010/05/02 18:48 UTC
Read the original article Hit count: 260

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.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa