Re: Properties [message #37412] |
Fri, 12 December 2003 17:24  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Fri, 12 Dec 2003 15:13:44 -0700, David Fanning wrote:
> David Fanning writes:
>
>> What you are missing are GetProperty and SetProperty methods that allow
>> use of the keyword MY_FIRST_PROPERTY. Add those, and you will be in
>> business! :-)
>
> Be sure, by the way, to call the IDLitComponent superclass GetProperty
> and SetProperty methods from within your own! This means the GetPropery
> method will probably need a _REF_EXTRA keyword.
>
> Sheesh! Doesn't this stuff get deep quickly! :-(
>
> Like this:
>
> PRO TestProps, MY_FIRST_PROPERTY=my_first_property, _Ref_Extra=extra
> my_first_property = self.data
> self -> IDLitComponent::GetProperty, _Extra=extra
> END
>
>
Thanks David. And, to my utter and complete surprise, you actually have a
to implement the getting and setting of a property via the keyword in the
(Get|Set)Property methods, you can't fool it by just putting the keyword
there. I gather it must give a value a round trip through
obj->Set,obj->Get to see whether your (Get|Set)Property methods actually
do as advertised. Very sneaky, actually checking on you like that. Makes
me feel like big brother is watching.
JD
|
|
|