

Rollo62
Members-
Content Count
1950 -
Joined
-
Last visited
-
Days Won
25
Everything posted by Rollo62
-
Please excuse my curiosity, I would like to know who is actually dealing with MacOS client apps.
-
Not that I would recommend such harsh steps, but has anybody tried to reset something in the MacOS ? I'm not a Mac guy at all, so thats why I'm very hesitating to get any deeper into the Mac hardware secrets. Maybe there are other tools or settings which could help. Edit: Maybe it helps to search for differences in CoreBluetooth, which could affect Rx10.3.1 apps. Does anyboy know good MacOS forums for such kind of question ?
-
One option would be to return two different "OK" in ModalResult from different buttons, like mrOK and mrYES. If that is what you mean.
-
Yes I like that idea too, but: This is just another service that reads ALL my texts I ever enter and sends them to their KI servers ... In my naivity I thought that Google and Facebook should make enough headache
-
[Fmx, iOS} App in Release shows only white background with Rio 10.3.1
Rollo62 posted a topic in Cross-platform
Hi there, maybe its too late today, but I don't see the reason why my app behaves different now. I updated to Rio 10.3.1, and made a new .dproj File by the IDE, to make all the necessary changes for iOS and Android. Now it shows the Launch-Screen in Debug mode on the deivice, but when I test via Release in Testflight, I just get a white, blank page. I have doublechecked everything, but I can see no reason. All settings in .dproj were doublechecked twice, against the old, working setting of 10.2.3. Nothing special. I added all icons and scxreenshots (including the new ones with different resolutions) I checked the icons for iPhone and iPad, they all are visible and OK in the IDEs "Application icons designer" In form SystemStatusbar I have black color, always, which is strange, since the launch sceen is white. Maybe this setting is only for the statusbar, but this is white during start too, only after start it went black, as usual. No error messages or warnings, all functions work fine, same in debug and release. I haven't checked the PNG file format yet, but I never got any issues, maybe now some special format is required. Anyhow all PNGs display fine in my graphics tools, as usual. I hope somebody could push me in the right direction, maybe tomorrow I see some light in the tunnel -
[Fmx, iOS} App in Release shows only white background with Rio 10.3.1
Rollo62 replied to Rollo62's topic in Cross-platform
Thanks for the reminder Its always the best way if something get stuck to use the miracle "empty app" (so sad that this is the best method ...). Anyway, an empty app, only with my images launches of coarse (Release / Development should be similar binary as in AppStore). Interesting are the .dproj files, which have not much relevant differences I would say at first glance. The only intersting difference is, the deployment file: <DeployFile LocalName="..\_Assets\Icons\_App\iOS\iPhone\FM_ApplicationIcon_87x87.png" Configuration="Release" Class="iPhone_AppIcon87"> <Platform Name="iOSDevice64"> <Overwrite>true</Overwrite> </Platform> </DeployFile> <Deployment Version="3"> <DeployFile LocalName="..\_Assets\Icons\_App\iOS\iPhone\FM_LaunchImage_1242x2208.png" Configuration="Release" Class="iPhone_Launch1242"> <Platform Name="iOSDevice64"> <RemoteName>Default-1242w-2208h@3x.png</RemoteName> <Overwrite>true</Overwrite> </Platform> </DeployFile> These additional <DeployFile ... > items appear in the non-working project, the working/empty project doesn't have these special deployment settings.. Anyway also the working/empty project deploys these files correctly (what I can see during start), Both apps define the images in the same way. //empty app OK <iPhone_AppIcon57>..\_Assets\Icons\_App\iOS\iPhone\FM_ApplicationIcon_57x57.png</iPhone_AppIcon57> <iPhone_Launch1242>..\_Assets\Icons\_App\iOS\iPhone\FM_LaunchImage_1242x2208.png</iPhone_Launch1242> // non-working app (Debug OK / Release not OK) <iPhone_AppIcon57>..\_Assets\Icons\_App\iOS\iPhone\FM_ApplicationIcon_57x57.png</iPhone_AppIcon57> <iPhone_Launch1242>..\_Assets\Icons\_App\iOS\iPhone\FM_LaunchImage_1242x2208.png</iPhone_Launch1242> So maybe there is something wrong with additional deployment versions ? Is there a way to reset them to default, so that I don'T have to re-create the whole .dproj file ? Edit Yes, that seems the case, but I don't know how I got there. The non-working project was re-created similar as the empty app, not long ago. So maybe I pressed the wrong buttons somewhere, very strange. Could this happen if adding files by the "resources and images" project option ? I think I better re-create the whole stuff again, to be sure and safe for the future. Thanks -
[Fmx, iOS] >iOS-Output err=Installed applications lookup failed (attempt 1 of 5 in 5 secs)
Rollo62 posted a topic in Cross-platform
Hi there, everyday a new error message, when trying to send a debug version to iOS device via PASever. Nothing changed, all went fine before. I deleted the old all on the device, and re-build project, and start again. That seems to work. Hope that helps somebody, since this issue was never mentioned in the web before. -
[Fmx, iOS] >iOS-Output err=Installed applications lookup failed (attempt 1 of 5 in 5 secs)
Rollo62 replied to Rollo62's topic in Cross-platform
Sorry. 10.3.1 Rio of coarse. XCode 10.x iOs 12.1.3 Sorry. Not in the Office. But should be all near latest version -
What is $F012 ? Do you mean $F120 ? https://docs.microsoft.com/de-de/windows/desktop/menurc/wm-syscommand Cant you store the last mouse positions before, and redraw the lines, or did the window move to another place ?
-
Delphi pitfalls: Enumerated types and for loops
Rollo62 replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
I used it for grouping (in very rare cases: type TMyEnum = ( None, GroupA = 100, A_1, A_2, GroupB = 200, B_1, B_2, Group_Last ); TMyEnum_Helper = record helper for TMyEnum function IsGroupA : Boolean; end; function TMyEnum_Helper.IsGroupA : Boolean; begin Result := (Value > TMyEnum.GroupA) and (Value < TMyEnum.GroupB); end; function TMyEnum_Helper.IsGroupB : Boolean; begin Result := (Value > TMyEnum.GroupB) and (Value < TMyEnum.Group_Last); end; I know thats a little smelly, so please don'T throw stones on my head. But I still find it very useful and efficient in some special cases, where I want to avoid a second variable for the grouping.- 39 replies
-
- pitfall
- enumerated type
-
(and 1 more)
Tagged with:
-
New FM Style for multimedia applications just released!
Rollo62 replied to DelphiStyles's topic in Delphi Third-Party
Ok, I see. When I think of vectors, I look at simple shapes, which shouldn't take too much space. Such vectors could probably be layered above the original control, which I do sometimes when enhancing the original components. Unfortunately for TStyleControl based controls this is not working very well. Now I have to use e.g. TRectangles sometimes as background where TLayout would be enough too, if there would be an easy way to recolor. This is bloating code and components as well, while I think GPU supported vectors should be a more clean way to render. A way out could be of coarse also a more simple StylesEditor, which inclodes recoloring spaces and parts w/o export/import w/ Photoshop. I think of a kind of "Material Design" style, which is very clean, flat and easy to handle, and has the ability to configure lets say fill.Color and stroke.Color via runtime. If there is a chance that such style could be done, maybe for a reduced component set only, this would be very interesing IMHO. Because the current styles make it hard to make simple color changes on the fly, you mostly need a custom style for every color, which is very unreasonable. My solution to this is to add e.g. rectangles in one custom style, to get at least a visual solution working close to this, but unfortunately there is not a "golden way" to achieve this, instead there is a lot of special treatment needed for each simple control. If you see an easy solution to achive such kind of re-configurable material design, please let me know. -
New FM Style for multimedia applications just released!
Rollo62 replied to DelphiStyles's topic in Delphi Third-Party
Thanks for the proposals. Im missing such tinted color for the basic components. Buttons, Panels are fine. Listbox, Listview, TabControl, Label would be the minimim. The original components have different structure from platform to platform. Ideally I would prefer a style with basic vector objects only. E.g. I made a simple button component using TPath, works perfect and can be easily render any form. Why not make more use of vectors in styles ? -
How do I find out in which Delphi version a certain RTL/VCL change was implemented?
Rollo62 replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Yes, but I think AndroidStudio does a very good job keeping the different versions all under one hood. XCode on the other side had already some critical breaks, refusing working together with RadStudio. On the other hand the yearly Apple provisioning desaster could be a good reason to keep also several XCode versions in one maching. At least XCode allows several versions side-by-side, using xcode-switch to change between. But that very clumsy, and I tend to avoid such scenario. I like the clean installs in VM, which also could be easily updated or completely new build from scratch. Of coarse you have a trillion Android devices, thats another story, and I personally don't think that there is the need to cover them all. If you focus on the main player (Samsung, LG, etc.) in the market, you already will get 80-90% coverage. -
How do I find out in which Delphi version a certain RTL/VCL change was implemented?
Rollo62 replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Yes, for VCL this should be the right way. I'm curious about the different versions for Andoid and iOS, which can bring much instability into the builds. Do you work also with such OS in the FinalBuilder ? If so, are you working with AndroidStudio, having all the different Versions installed ? I think this could be quite easy. For iOS/MacOS this could be more difficult, so probably at least these could be running in separate OSX-VM. Maybe the right way is to have all RadStudio Versions and AndroidStudio on one machine, and the various OSX Versions in separate, small VMs ? -
I use HtmlComponents for Editor and viewer mainly. Its quite powerful, and I'm working on the move from RTF, Word, PDF, etc. to plain HTML + CSS, etc. The HtmlComponents seems best suited for this case, although it hase a little steep learning curve, but my larger plan is to have HTML as base exchange format on all platforms in the near future.
-
Thanks for the info, I had heard about "Marzipan" with one ear, but I'm not too deep into Apple developments. How do they handle Beta versions of XCode, OS, etc., do you have experience with that ? Would be also important for EMBT to have a well working Beta in hand soon enough. I hope their Beta policy avoids sudden changes before the final release is launched.
-
How do I find out in which Delphi version a certain RTL/VCL change was implemented?
Rollo62 replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
One stupid queston: How do you manage all the different versions of related libraries and frameworks ? (like AndroidStudio, iOS Frameworks, etc.) Wouldn't it be simpler to keep each version into a separate, clean VM ? -
New FM Style for multimedia applications just released!
Rollo62 replied to DelphiStyles's topic in Delphi Third-Party
Thanks, I like all the new styles you offer. My question is, how are they prepared to be configurable in color and rendering on all mobile devices and desktop ? The original styles are not very compatible, and not easy to adjust, they need to have special tweaks for every platform, so that its sometimes not possible to have same look on all OS. Do you use same structure of the styles for all platforms, wherever possible ? Have encapsulated the main swatch colors, so to be able to adjust the color scheme from changing a few variables only ? Are those variables accessable during runtime, so that custom color changes can be made easily w/o creating a new style ? IMHO the biggest drawback of the Style system is that it doesn't not really support easy changes of the main colors in a style: like background, text,/labels, foreground color, etc. There is the option of TintedColor somehwere, to be able to recolor some objects, but this is not consequently used in all components and platforms. What would be your recommendation if I would need to e.g. to re-color your backgground color slightly different tone, as well as to change your foreground color from green to red ? -
EMBT is close to the test platform Gurock and Sencha JS now, so they should better learn to eat their own dogfood. Enjoy your meal
-
FYI: Graph showing iOS crashes with recent Delphi versions
Rollo62 replied to Hans♫'s topic in Cross-platform
@Dalija Prasnikar Good to hear that with Fmx we're not the only hopeless bunch of people out there, and all others face similar issues. But your' reight, XCode e.g. fixes most issues by itself, and I wigh Delphi could have that state of smartness too. Regarding above "old code" line, thats true. IMHO the only reliable way to keep old code running is to separate code parts into many quite small, well testable fractions. Much more code-modularization is needed than it would be necessary for traditional Windows development. Its good coding practice anyway, so we have to have even more discipline maybe. -
Should my record be a class instead?
Rollo62 replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Record destructors are a brand new feature sind 10.3 Rio. Do you really want to use it already ? http://blog.marcocantu.com/blog/2018-november-custom-managed-records-delphi.html http://docwiki.embarcadero.com/RADStudio/Rio/en/New_features_and_customer_reported_issues_fixed_in_RAD_Studio_10.3 -
[iOS] TLocationSensor not firing in iOS12, w/ NSLocationAlwaysAndWhenInUseUsageDescription
Rollo62 posted a topic in Cross-platform
Hi , I ran into another iOS problem, which I thought was solved in 10.3 Rio. Since I updated some iPhone and iPad to iOS12.13, the Location doesn't seem to fire any more. I was sure this was fixed before, but now it seems to strike back. System(s): Rx10.3 Rio Ent, iPhone/iPad iOS12.13 Problem: The location sensor doesn't send OnLocationChange events at all, while all other events, like OnHeadingChanged are there. When starting the "Allow" selection appears, but that doesn't start actions. Workarounds tested: I followed the advices to add NSLocationAlwaysAndWhenInUseUsageDescription in newer iOS, also following the nice instruction here from FeLDMARShaL, which is probably the essence of all other descriptions found in the web. http://fire-monkey.ru/topic/5393-ios-полноценная-фоновая-работа-приложения/#comment-34184 and the description and demo from DelphiWorlds https://www.delphiworlds.com/2016/02/location-sensor-work-in-the-background-on-ios-9/ The solutions described were simple: just add "NSLocationAlwaysAndWhenInUseUsageDescription" key, but that doesn't seem to work always. In my tests neither the Emba samples, not the DelphiWorlds sample seems to work any more. Does anybody has a clue what else is missing ? Rollo -
[iOS] TLocationSensor not firing in iOS12, w/ NSLocationAlwaysAndWhenInUseUsageDescription
Rollo62 replied to Rollo62's topic in Cross-platform
Well Dave, I think I owe you a beer. Thank you very much for pointing me in the right direction. I already made such proposal earlier, why is it so hard to find workarounds in the web. Wouldn't it be about time to have a kind of "CanIUse" and "Polyfills" for Delphi ? I would rather look into a well sorted database of workarounds, instead of searching Google first. If anybody at EMBT (or elsewhere) is listening to me, I hope there could be such a valuable search structure too (maybe here in DP as well). -
Guessing the decimal separator
Rollo62 replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
I don't think a preliminary "guess" might help, when e.g. TryStrToFloat() fails. It is maybe only a general switch on what is the preferred method to use. Even if the guess is valid, and you have only ONE wrong decimal number, you have to handle the TryStrToFloat() failure anyway. So what ? -
Hi , does anybody know more deeply about what Apple plans for the new "teams" restructurization ? https://developer.apple.com/support/teams/ Is this an iTunes case only, or does this affect the MemberCenter teams too ? How would this affect RadStudio anyhow, as we're using "personal teams" and "company agents" in the MemberCenter ? I'm afraid this could affect the provisioning files, and the RadStudio way of reading and analysing the provisioning data. I hope this is not one another Apple "improvement" which causes too much headache for developers. Maybe some insiders could already peek inside whats going on at Apple .