Hi Matthias,

>> Am I right when I assume that myComp is the same as in the first line
>> and that it does not make a difference in using it?
> 
> No.
> 
>> If so, why is the xStorable derived from myComp = null and the xStorable
>> derived from this.xComponent the correct value?
> 
> myComp points to a Controller object. This object doesn not support
> XStorable.
> 
> this.xComponent points to a Model object. This object *does* support
> XStorable.
> 
> Both objects OTOH support XComponent (as some others do). And *all*
> objects support XInterface. Where is the problem?
> 
> It seems that you mixed up the "component" of a frame (an abstract term
> for the "something" that a frame may contain) with the interface
> XComponent that can be (and is) implemented by a lot of objects in OOo,
> most of them will never become attached to a frame.
> 
>> Maybe this behaviour is correct. If so, please tell me why. What I want
>> to explain all the time is, that I think there should be no difference
>> using myComp and this.xComponent, but it is a great difference.
> 
> myComp and this.xComponent from your example are interface references
> that belong to different objects. You should read the chapter about
> Frames, Controllers, Models in the DevGuide to understand the difference
> between models and controllers.

Now the things I wanted to do are working. Thank you for your
explanations. Now I see, that your tip to read the capter about
Frames,... is really useful for me. I mixed up something. Sorry for
taking so long time. But thanks a lot for your great help!

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to