I've done this before, but need to dig up some sample code for you. Can get you something by Wed. Also, shouldn't need to lose the C4 functions... I think the trick is to write a drawInContext
method similar to render()
which can be found in the View
class.