Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Kronos on September 22, 2003, 08:55:07 PM
-
O.k. I allready discussed this sometimes ago with itix on irc, but it
seems that I'm just to slow even for the easiest instructions .....
I got a costum class,and this should have an extra attribute, which I than
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 ?
I do get a bunch of OM_GETs at app-start,but none afterwards ....
-
Tuesday must be ReAction day then! ;-)
--edit: Take spaces out of day names... --
-
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.
-
You mean you want to be notified when your attribute has been changed?
Tell you, both MUI and Reaction's API suck ;-) What's needed is a clean, C/C++ style compliant...;-)
Sorry Kronos, I don't actually know the answer so I'll shut up now :-)
-
@Karlos
More the other way round.
I want the app to be able to check the attribute via a Notify that I setup
at progstart. Than I want to set the attribut inside my class, and the
app should react according to that notify.
-
I want the app to be able to check the attribute via a Notify that I setup
at progstart. Than I want to set the attribut inside my class, and the
app should react according to that notify.
Well, have you read my reply? :-)
-
Well, have you read my reply? :-)
Yes I did,but until right now had no time to try ....
Seems to work o.k. sofar.
@Karlos
That isn't really a special MUI/ReAction-prob ....
I stillcringe when I remeber how long it me to find out how to set the
IMsg->code in a GadgetUP-event coming from my boopsi-object
(based on RKRMBut) :-x :-x
There is a C++-wrapper for MUI,so that wouldn't be a prob. And writing
better doku for that sounds somewhat easier than writing a new GUI-lib
AND a good doku for that :-o