How to create a reusable form using COCOA bindings.

Posted by Juliano Sott on Stack Overflow See other posts from Stack Overflow or by Juliano Sott
Published on 2011-01-10T03:48:42Z Indexed on 2011/01/10 3:54 UTC
Read the original article Hit count: 174

Filed under:

hi. I want to make a user interface in which the user can edit two objects at the same time. The main window would have a vertical split view and a form on each side of the view. The problem is that the two forms are identical and I don't want to duplicate the view components in the interface builder. I want to create the form one time and add a reference to it in each side of the split view, each one using a different object source. I could use a NSForm, but the form is not a simple grid of outputTexts and inputText. They have a master table, and diverse kinds of inputs types, like combos, in the detail. How do I create the reusable form using the interface builder? Or how can I do it programmatically? Do I have to create a subclass of NSView and add the individual components in the code?

Thanks, Juliano

© Stack Overflow or respective owner

Related posts about cocoa