1
votes

I have an NSView subclass that is used for displaying a custom object. The drawing logic is all in methods on the subclass. There is no view controller associated with this view.

I have added a couple of controls next to this view in Interface Builder that will be used to control the display of the object.

Is it OK to have these controls connected to IBOutlets and IBActions on the view? I know that it's possible, but is it poor design? Should I be using an NSViewController?

1

1 Answers

1
votes

No that is completely fine and it's how things are supposed to connect together. There is no need to use an NSViewController as it only really helps manage the creation of the view from a .nib file and it can still only manage one view.