Different tags for the same data?

2 posts / 0 new
Last post
OldFart
OldFart's picture
Offline
Last seen: 2 weeks 6 days ago
Joined: 2010-11-30 14:09
Different tags for the same data?

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

salass00
salass00's picture
Offline
Last seen: 2 months 1 week ago
Joined: 2011-02-03 11:27
Re: Different tags for the same data?

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.

Log in or register to post comments