You are not logged in.
Pages: 1
Hi Ab,
Playing with Delphi 10 Seattle, I wanted to bring in mORMot, but quickly realised that there's a big issue. System.Contnrs is not supported in mobile projects! That means no TObjectList.
See mobile white paper:
"Use the generic container classes defined in the unit Generics.Collections. The old-style Contnrs unit is not available on the mobile platform, because it is based on a pointer list (the non-generic TList class) and won’t work properly with the ARC memory management model."
Does that mean no mORMot for mobile projects, or is there a clever work around?
Offline
Mobile clients use cross-platform dedicated units.
See http://synopse.info/files/html/Synopse% … ml#TITL_86
For compatibility, the following type is defined:
{$ifdef NEXTGEN}
// TObjectList is not defined in Mobile platforms
TObjectList = TObjectList<TObject>;
{$endif}
Offline
I can't seem to find anything relating to Interface based services (specifically TSQLHttpClient or other class that implements ServiceDefine) in any of the cross-platform dedicated units. Is this a Work In Progress?
Offline
Interface-based services are supported in cross-platform clients.
See e.g. how TServiceCalculator is generated in https://github.com/synopse/mORMot/blob/ … Client.pas to implement a ICalculator service.
Please RTFM in my previous link.
For instance http://synopse.info/files/html/Synopse% … #TITLE_452
All is explained here.
Offline
Ab,
I had some time to play with it now, and it seems that the wrappers are not generating for my DTOs. I can't use the DTO unit, as my DTO's descend from SynCommons' TSynPersistent, and make heavy use of UTF8Raw.
Do I need to register my DTOs somewhere?
Offline
Hi Ab,
An example that illustrate the issue is here: https://goo.gl/YEGyj7
Offline
Pages: 1