iOS Control names

Hello,

can it be that a control for iOS and for desktop can’t have the same name?

We set one to be target Desktop and other to be target iOS.

The IDE has trouble distinguishing them. It would be better if they had unique class names.

That’s really a pity as they have different targets and it would allow to copy & paste between projects.

It wouldn’t really. Unless the classes are absolutely identical, copy & paste wouldn’t work anyway.

What I suggest is prefixing controls with the project type like we do…

Web
Mobile > things that exist on all mobile devices
iOS > things that only exist on iOS but have no equivalent on, let’s say, Android.

So
WebButton
MobileButton

Or in your case
WebWidgetMBS
MobileWidgetMBS

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.