[Setools] Ways to extends OB-Standard
Alexandre Bergel
Alexandre.Bergel at cs.tcd.ie
Fri Nov 17 10:01:23 UTC 2006
Hi Damien!
Where can I find the last version of dynamic protocols please ?
As you might know, we are currently writing a paper on OmniBrowser. I
would like to use dynamic protocols as an example.
Cheers,
Alexandre
Am Oct 17, 2006 um 7:36 PM schrieb Damien Cassou:
> Hi,
>
> I'm working on two packages, each currently overriding an existing
> method. Is there a solution to avoid this ?
>
> First Case : DynamicProtocols. It overrides
> OBCodeBrowser>>addTo:class:comment:metaclass: adding a call to the
> following method at the end:
>
> DynamicProtocols>>installDPOnClass: class metaClass: metaclass
> method: method
> "Install our dynamic protocol system in OmniBrowser"
> | protocols |
> protocols := OBMetaNode named: 'DynamicProtocols'.
> class childAt: #dynamicProtocols put: protocols.
> metaclass childAt: #dynamicProtocols put: protocols.
> protocols
> childAt: #methods put: method;
> addActor: (OBNodeActor onNodeClass: OBMethodCategoryNode)
>
> (not sure if what I do is correct).
>
>
> Second Case : FileOutClasses. This package just want to add 2
> entries in the action menu for classes, methods and protocols. I
> may be able to use services or prefix a method with 'svc' as I read
> through your comments.
>
> Can you explain me what are the best solutions please ?
>
> Bye
>
> --
> Damien Cassou
>
> _______________________________________________
> Setools mailing list
> Setools at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/setools
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Setools
mailing list