Jump to content

Dave Nottage

Members
  • Content Count

    1279
  • Joined

  • Last visited

  • Days Won

    28

Posts posted by Dave Nottage


  1. 24 minutes ago, Nick Blunda said:

    It is possible to hide "Window" item of system menu in macOS?

    Example code for how to do it:

    uses
      Macapi.AppKit, Macapi.Helpers;
    
    procedure TForm1.Button1Click(Sender: TObject);
    var
      LMenu: NSMenu;
      LIndex: Integer;
    begin
      LMenu := TNSApplication.Wrap(TNSApplication.OCClass.sharedApplication).mainMenu;
      LIndex := LMenu.indexOfItemWithTitle(StrToNSStr('Window'));
      if LIndex > -1 then
        LMenu.itemAtIndex(LIndex).setHidden(True);
    end;

     

    • Like 2

  2. 1 hour ago, kabiri said:

    I created the folders in the paths that it couldn't find

    You should not have to manually create missing folders. Even if you did, the files that the compiler needs would not be there. If there was a missing PrivateFrameworks folder, you may have to re-import the SDK using these steps:

    1. In the folder C:\Users\(username)\Documents\Embarcadero\Studio\SDKs, where (username) is the logged in user name, delete the relevant iPhoneOS SDK folder (e.g. iPhoneOS17.2.sdk)
    2. Delete the SDK from the SDK Manager in Delphi
    3. On the Mac, in the ~\PAServer\scratch-dir folder, remove any folders starting with cache-dir
    4. In Delphi, re-add the iOS SDK
    5. Repeat the steps mentioned earlier for importing Swift frameworks, ensuring that you also follow the manual step involving copying of folders.
    • Thanks 1

  3. 8 hours ago, Rollo62 said:

    Yes, I need debugging on devices, because I need to debug external devices too.
    Without debugging, this turns out to be a real pain, although I have implemented massive logging meanwhile.

    You're not going to be able to debug on iOS 17 devices using Delphi until EMBT fix it, regardless of the Xcode version. If you need debugging on real devices, use one with iOS 16.x (if you can find one)

     


  4. 33 minutes ago, Rollo62 said:

    It seems that unfortunately nobody else has some more insights regarding Sonoma and XCode 14.3.1 vs. XCode 15.2,

    I might have, if I needed to use Xcode 14.3.1 - I have read back trying to work out why you need to. Delphi 11.3 and 12 works with Xcode 15.2 for me, aside from debugging with iOS 17 devices (as you discovered - known issue, yet to be resolved)


  5. 50 minutes ago, JohnLM said:

    And after searching around I saw that there are other ways to stream using OBS software on the laptop and installing an app on the phone via an ipp address.

    Not OBS (at least as far as I can tell), but I use this on Android: https://play.google.com/store/apps/details?id=com.ipphonecamera&hl=en&gl=US

    I thought they had an iOS version, but I could be mistaken. Can't seem to find it on the App Store.

     


  6. On 1/31/2024 at 9:36 PM, Dave Nottage said:

    I seem to recall that I was going to try and work around it by constructing an Activity in Java, and have it forward the intent to the Delphi app, not trying to start it again if it was already running, of course. I am yet to do anything like that as it's not a priority for me.

    Must be having memory issues - see this QP report. My only excuse is that it's from May last year.


  7. 18 minutes ago, Gordon Kenyon said:

    do you know what timeframe  we are looking at before debugging for iOS 17 will be available? 

    I don't know, sorry.

    • Thanks 1

  8. 53 minutes ago, DominikR said:

    While testing my features i found out, that my app keeps on hanging on a black screen when i try to import a text file with a file explorer.

    If this is the same issue as I encountered a few months ago (I really should have kept notes), then it's because the Files app ignores singleTask for launchMode and attempts to start a new activity, and Delphi does not support starting a completely new activity in the same app. This is an SO discussion about it being a problem also using Java.

     

    I seem to recall that I was going to try and work around it by constructing an Activity in Java, and have it forward the intent to the Delphi app, not trying to start it again if it was already running, of course. I am yet to do anything like that as it's not a priority for me.

    • Like 1
×