In order to make Delphi component/control available for all (currently) available platforms I have to write
[ComponentPlatforms(pidWin32 or pidWin64 or pidOSX32 or pidiOSSimulator or pidiOSDevice or pidAndroid)]
before component/control declaration:
type
[ComponentPlatforms(pidWin32 or ...)]
TMyComponent = class(TComponent)
end;
Is there a shorter way of writing that component supports all current and future platforms?
const pidAll = pidWin32 or pidWin64 or pidOSX32 or pidiOSSimulator or pidiOSDevice or pidAndroid;
then[ComponentPlatformsAttribute(pidAll)]
. – VipidAllPlatforms
quality.embarcadero.com/browse/RSP-9839 – LandanTComponent
itself has because they do not contain any platform specific code nor 8-bit strings. – LandanTComponent
descendants that do not haveComponentPlatformsAttribute
specified? In XE2, XE3 and XE4 I can only see such components for Win32. – LandanTComponent
, and uses nothing more complex than the functionality made available by the language and the basic units of theSystem
namespace, surely it would be reasonable to mark the component as being agnostic of platform. – Pinhole