I got a costum class,and this should have an extra attribute, which I then want to use as trigger for an Notify-method.
I know that it has something to do with OM_SET/GET, but how do I make sure that the attribrute is actually checked forafterI set it ?
You simply need to forward the OM_SET message to your superclass. This is a snippet code from the UAE gui I'm writing for AROS (btw, why the hell isn't the
...
bbcode available, uh?:
struct TagItem *tags, *tag;
for
(
tags = message->ops_AttrList;
(tag = NextTagItem(&tags));
)
{
switch (tag->ti_Tag)
{
....
}
}
return DoSuperMethodA(CLASS, self, (Msg)message);
Sorry for the bad indentation, but without the [code] thingie I couldn't do better.