Hi,
Going through some documentation, I stumbled upon these 2 tags:
WA_UserPort - (struct MsgPort *) A message port used as shared
idcmp port for this window. Intuition will never attempt to
delete this port. CloseWindow() will strip all messages
(belonging to the window) from the port before closing the
given window. (V50)
and:
WINDOW_SharedPort (struct MsgPort *)
Pointer to a custom UserPort this window should share.Defaults to NULL.
Applicability is (OM_NEW, OM_SET, OM_GET)
Is there any diffence between the 2 or is it in case of the latter safe to read it as follows:
WINDOW_SharedPort (struct MsgPort *)
WA_UserPort - (struct MsgPort *)
Pointer to a custom UserPort this window should share.Defaults to NULL.
Applicability is (OM_NEW, OM_SET, OM_GET)
Not quite clear
OldFart
The difference is that WA_UserPort is for OpenWindowTags/-TagList and WINDOW_SharedPort is for ClassAct/Reaction's window.class.
If you open intuition windows directly and your program supports only V50+ then you can use WA_UserPort. If you use window.class you need to use WINDOW_SharedPort because window.class doesn't yet support the WA_UserPort tag, which is why you won't find it mentioned in window_cl.doc.