Well for the objective C bridge

MCHttpRepository
        location: 'http://www.squeaksource.com/ObjectiveCBridge2'
        user: ''
        password: ''

I used ProtoObject as the super class of the ObjectiveCObject and  
supplied doesNotUnderstand: to forward messages to the
Objective-C plugin for dispatching Obj-c messages.

In attempting to work with instances of ObjectiveCObject I found I had  
to implement about 20 support methods
so that you could inspect, explore, or recompile. Otherwise tapping  
inspect sends to you la-la land...
Maybe there is a useful clue somewhere in there.


On 27-Feb-09, at 9:31 AM, Stéphane Ducasse wrote:

> Hi
>
> I wanted to see what is used in Morph so I did the following
>
> Define a subclass of ProtoObject and redefnied DNU as follow
>
>
> doesNotUnderstand: aMessage
>
>       | sel category |
>       sel := aMessage selector.
>       Transcript show: 'Does not understand ',  aMessage selector
> printString ; cr.
>       category := (Morph organization categoryOfElement: sel).
>       self class compile: (Morph sourceCodeAt: sel) classified: category.
>       ^ aMessage sentTo: self.
>
>
> It works if I copy from Object but not from Morph
> does any of you have an idea.
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
= 
= 
= 
========================================================================
John M. McIntosh <[email protected]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
= 
= 
= 
========================================================================




_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to