Is this a good way of going about it? I subclassed NSView and
defined the properties border_colour, fill_colour, and pic. These
are initialised to nil. I then implemented drawRect: like this:
Now the controller can change the content of the view by assigning
values to the properties.
Looks fine.
But it still seems an awful lot has to be decided about the content
of the view when the subclassing is done. Or am I missing something
simple here?
No, you're not missing anything. An empty NSView draws nothing at all,
so of course you have to supply all of the content in your subclass.
What would you expect it to do?