[Newbies] custom halos

Aidan Gauland wgsilkie at ihug.co.nz
Sat Oct 4 05:25:28 UTC 2008


K. K. Subramaniam wrote:
> For adding a new button called BBB, you need to
>   1. add a halospec for addBBBHandle to Preferences class (see senders of 
> addScriptorHandle: for the list)
How can I do (and undo) this programmatically?

>   2. add wantsBBBHaloHandle to Morph (returning false)
>   3. add method addBBBHandle to HaloMorph (see addScriptorHandle: for an 
> example).
>   4. Add wantsBBBHaloHandle method (returning true) and a event handler to 
> your Morph
What do you mean by "event handler", and how do I create one for this?

> 
> See senders and implementors of addScriptorHandle: for an example.
There does not seem to be any such method.  Did you mean addScriptHandle:?

Thanks,
Aidan



More information about the Beginners mailing list