Jump to content

Dave Nottage

Members
  • Content Count

    1560
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Dave Nottage

  1. Dave Nottage

    Setting a "nullable" property on a .NET object

    I've posted a new question after help from Olivier: https://stackoverflow.com/questions/61514990/setting-an-enum-property-on-a-net-object If anyone can help, it would be greatly appreciated.
  2. Dave Nottage

    WebModu class does not exist in Delphi 10.3

    The recommended thing to do is to migrate to IntraWeb (from WebSnap, which is where WebModu is from)
  3. Dave Nottage

    NSHighResolutionCapable = true scaling problems on MacOS 10.13

    I followed this link to here: https://quality.embarcadero.com./browse/RSP-27197 I'd use the change that Erik suggested.
  4. Dave Nottage

    Setting a "nullable" property on a .NET object

    I've posted a question about this on SO which has received some attention: https://stackoverflow.com/questions/61334031/setting-a-nullable-property-on-a-net-object ..and I think I may be closer to a solution. Can someone check the code for the InvokeToObject method to see if I'm missing anything critical?
  5. They're ugly, but they are true. In your case however you should need only use dictionaryWithObject (since there is only one value), thus: var LDict: NSDictionary; LBooleanValue: Pointer; begin LBooleanValue := TNSNumber.OCClass.numberWithBool(True); LDict := TNSDictionary.Wrap(TNSDictionary.OCClass.dictionaryWithObject(LBooleanValue, NSObjectToID(CBCentralManagerOptionShowPowerAlertKey))); end;
  6. You'll need to be more specific.
  7. Dave Nottage

    Delphi fmx comes standard in iOS font

    Excellent! I was not aware of that property; thanks 🙂
  8. Dave Nottage

    Delphi fmx comes standard in iOS font

    I see what the problem is now: it's because selecting Segoe UI at design-time results in the Family value not being stored in the .fmx, because it's the default for Windows. I'd consider that a design fault, since it does not account for using a font with the same name on platforms other than Windows. Easiest solution: use something that looks like Segoe UI, but isn't 🙂 Any other solution would seem a bit difficult..
  9. Dave Nottage

    Delphi fmx comes standard in iOS font

    That's because you have Family in the StyledSettings property set to True in the Object Inspector (i.e. at design time). You need to set it to False
  10. Dave Nottage

    Delphi fmx comes standard in iOS font

    It also works for me just by having the Font.Family property in TextSettings set to the correct value (i.e. Anton) at design time. Using the button and code was just to demonstrate that there's a very obvious change in the font. I suspect there's something else wrong with your project, which is why I asked to post a test case.
  11. Dave Nottage

    Delphi fmx comes standard in iOS font

    I'm using Delphi 10.3.3, the latest released version of Xcode (11.4), building against the latest iOS SDK (13.4) and it works on my iPhone X which has iOS 13.4. I've attached my test project (which uses the Anton font, from here: https://fonts.google.com/specimen/Anton). Perhaps if you have a test project, you could attach it so it might be discovered what is going wrong. CustomFontDemo.zip
  12. Dave Nottage

    Adding a new SDK for MacOS fails

    Actually it did - sorry, I used the workaround. I think isolation has caused some memory loss
  13. Dave Nottage

    Adding a new SDK for MacOS fails

    Yes, that's what PAServer runs to discover what SDKs are on the Mac. Actually, I'm not sure now whether PAServer will show anything when it copies the files to the local machine. I was hoping it would display an error (if any). You should not need to, no. In case there is something really wrong though, on the Mac can you: Go to the Applications folder in Finder Right click on Xcode and click Show Package Contents Navigate to: Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs and make sure there's a MacOSX.sdk folder there (with subfolders) The only other thing I can think of is a rights issue (i.e. PAServer somehow does not have rights to the SDK subfolders), but that's a stretch
  14. Dave Nottage

    Adding a new SDK for MacOS fails

    Your moniker says you're using Delphi 10.2 Tokyo. Is that still the case? Adding macOS 10.15.4 SDK works OK for me using 10.3.3. If you are using 10.3.3, it might be useful to turn on verbose mode in PAServer (v command)
  15. Dave Nottage

    Delphi fmx comes standard in iOS font

    Yes, as per the article. Make sure you're actually deploying the font files (Project|Deployment in the Delphi IDE), and to the correct Remote Path. i.e: .\ Also make sure that the entries in info.plist.TemplateiOS.xml match exactly with the actual filename - filenames are case sensitive on iOS.
  16. Dave Nottage

    Delphi fmx comes standard in iOS font

    Your info.plist.TemplateiOS.xml file is incorrect. Instead of: <key>Segoe UI</key> It should be: <key>UIAppFonts</key> As per the article
  17. Dave Nottage

    Delphi fmx comes standard in iOS font

    http://firemonkeyblog.blogspot.com/2014/12/how-to-use-custom-font-in-ios-delphi.html
  18. Dave Nottage

    handle virtual keyboard with alcinoe library

    The whole point is to shift controls up when they would be otherwise covered by the virtual keyboard. There is no point in shifting them down. In order to do that, you would need to have a control (e.g. a TLayout) at the top of the scrollbox and change the height so that the other controls move down. It is way more trouble than it is worth, and I doubt that users would even expect it to happen.
  19. Dave Nottage

    Delphi fmx comes standard in iOS font

    Please indicate what you mean by "before", e.g. was it a different version of Delphi? Deploying to a device with a different version of iOS, if so, which version(s)? Were your applications deploying the custom fonts? .
  20. Dave Nottage

    handle virtual keyboard with alcinoe library

    I must be missing something. What's the actual issue?
  21. Dave Nottage

    Global StyleBook component

    Yes, that is a drawback of using a datamodule. That said, different custom styles for the same controls inside the same application seems like inconsistent UI design to me.
  22. Dave Nottage

    Global StyleBook component

    Use a DataModule
  23. You cannot rewrite that java code into Delphi code, since it is creating a descendant of a Java class, which is presently not possible with Delphi. You can however create descendant in Java code that can then be consumed by Delphi. I've been meaning to do a blog post about this for quite some time now because it requires a fair amount of explanation as to how to go about it.
  24. Dave Nottage

    Can't find compiled macOS app

    It's in on the Mac, in /Users/[username]/PAServer/scratch-dir/[computername]-[profilename], where [username] = the macOS username [computername] = the Windows computer name you're deploying from [profilename] = the connection profile name you're using eg: /Users/dave/PAServer/scratch-dir/dell-Mac I have Delphi expert and companion macOS app that has functionality that opens Finder on the Mac to show you exactly where it is, here: https://github.com/DelphiWorlds/Mosco
  25. Dave Nottage

    Custom TrueType font in FMX Android app?

    Your example doesn't work on Android < 10 without those changes. I'm wondering how it ever would have, unless it included a font file without -Bold or -Regular on the end (which is not in the example). I've attached an update to the example that works on my Android 5.0.1 and Android 10 devices. true_font_b.zip
×