[Cuis-dev] minimum requirements for a BoxMorph subclass

Mariano Montone marianomontone at gmail.com
Sun Dec 15 05:37:11 PST 2024


Hi Mark,

El 14/12/24 a las 22:42, Mark Volkmann via Cuis-dev escribió:
> I'm trying to understand what is required to create a subclass 
> ofBoxMorph. I know I need to implement thedrawOn:instance method. And 
> I believe that depending on how I implement that, I need to implement 
> therequiresVectorCanvasmethod to return true.
>
> Is anything else required? I think more must be required, because I 
> can't get a basic example to work doing only those things.
Have you tried browsing BoxMorph hierarchy and looking at its subclasses?
>
> I'd especially appreciate it if someone can tell me how I could have 
> determined the answer on my own by looking at the source. I tried to 
> do that and failed.

How is it failing? Perhaps attach example of what you are trying to do 
... it shouldn't be much more than implementing a #drawOn: method ...

      Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241215/da3f61ef/attachment.htm>


More information about the Cuis-dev mailing list