Application Library app properties tags: something missing?

Have a question about our Software Developer Kit? Ask them here.
Post Reply
User avatar
trixie
Posts: 399
Joined: Thu Jun 30, 2011 2:54 pm
Location: Czech Republic

Application Library app properties tags: something missing?

Post by trixie »

The Application Library provides a set of boolean tags through which an app can inform about the features it supports:

REGAPP_HasIconifyFeature
REGAPP_HasPrefsWindow
REGAPP_CanCreateNewDocs
REGAPP_CanPrintDocs

These properties can also be specified after registration, via

APPATTR_HasIconifyFeature
APPATTR_HasPrefsWindow
APPATTR_CanCreateNewDocs
APPATTR_CanPrintDocs

I haven't designed the library and the autodoc is very sketchy on this particular bit, but I believe these tags were introduced so that applications could query about relevant properties of other apps before sending them a message. For example, a control application like AppManager would first check the APPATTR_HasPrefsWindow tag for TRUE before sending an APPLIBMT_OpenPrefs message.

This is an interesting idea but something seems to be missing. APPATTR_CanCreateNewDocs and APPATTR_CanPrintDocs are there apparently in relation to the APPLIBMT_NewBlankDoc and APPLIBMT_PrintDoc messages, but there is no counterpart for the APPLIBMT_OpenDoc message.

So if this framework is to be consistent, there are two property tags missing:

REGAPP_CanOpenDocs
APPATTR_CanOpenDocs
Smoke me a kipper, I'll be back for breakfast!

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition

Post Reply