Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Moin!

Ich habe mir am Wochenende mal die Pascal/Delphi-Bindings angeschaut und mit Delphi 11 & 12 getestet. Für Windows und OSX lief alles einwandfrei - Linux, IOS und Android brachten einige Compilerfehler. Ich habe mir das Ganze mal angeschaut und korrigiert, so dass alles für alle unterstützten Plattformen compiliert (und mit meinem Testprojekt auch einwandfrei auf Windows, Android (32&64), IOS, OSX und Linux funktioniert. Glücklicherweise haben Embarcadero und ihr gute Vorarbeit geleistet... Alle Systeme, die nicht funktionierten waren "Unix"-Systeme. Ich habe daher an einigen Stellen aus "DELPHI_MACOS" ein "DELPHI_NONWIN" gemacht. Geändert werden mussten dabei nur die TimedSemaphore.pas und die IPConnection.pas.

Einfach gesagt wird in beiden Dateien aus:

{$ifdef FPC}
 {$mode OBJFPC}{$H+}
{$else}
 {$ifdef MACOS}{$define DELPHI_MACOS}{$endif}
{$endif}

ganz banal ein:

{$ifdef FPC}
 {$mode OBJFPC}{$H+}
{$else}
 {$ifndef MSWINDOWS}{$define DELPHI_NONWIN}{$endif}
{$endif}

(Denn alle Zielplattformen außer "MSWINDOWS" sind Unixbasiert und werden ähnlich behandelt.) MSWINDOWS wird in Delphi schon seit Anbeginn der Ewigkeiten definiert, so dass mir das als einfaches Unterscheidungskriterium erscheint...

Als Folge müssen natürlich die ConditionalDefines in der Datei angepasst werden... von {$ifdef DELPHI_MACOS} zu {$ifdef DELPHI_NONWIN}

Dank der sauberen Implementation ist das dann auch schon alles - und alle Zielplattformen lassen sich compilieren.

IPConnection.pas TimedSemaphore.pas

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.