Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Mac Problem mit Locationsensor (https://www.delphipraxis.net/183389-mac-problem-mit-locationsensor.html)

Peter666 6. Jan 2015 18:44

Mac Problem mit Locationsensor
 
Hi,

alle aktuellen Delphi Versionen haben ein Problem mit älteren OSX Systemen. Apple hat wohl [CLLocationManager authorizationStatus] irgendwann später mal eingeführt und sobald man TLocationSensor verwenden will, gibt es einen Crash. Meine Frage ist nun macht das Sinn überhaupt einen Fehler der Art in der QualityCentral zu melden? Der Bugfix wäre:

Code:
function TMacLocationSensor.GetAuthorized: TAuthorizationType;
begin
  if (TOSVersion.Major < 10) or (TOSVersion.Minor < 7) then
  begin
   result := TAuthorizationType.atNotSpecified;
   exit;
  end;
  case TCLLocationManager.OCClass.authorizationStatus of
    kCLAuthorizationStatusNotDetermined:
      Result := TAuthorizationType.atNotSpecified;
    kCLAuthorizationStatusDenied,
    kCLAuthorizationStatusRestricted:
      Result := TAuthorizationType.atUnauthorized;
    kCLAuthorizationStatusAuthorized:
      Result := TAuthorizationType.atAuthorized;
  else // avoids compiler warnings
    Result := TAuthorizationType.atNotSpecified;
  end;
end;
Ich kann das nicht prüfen, da die Testmaschine mittlerweile nicht mehr verfügbar ist. Es gibt wohl aber doch etliche Nutzer die ihr Apple System nicht aktualisieren. Dachte eigentlich das würden die Jünger stets und ständig machen...

Peter

Sir Rufo 6. Jan 2015 19:06

AW: Mac Problem mit Locationsensor
 
Ob das wohl damit zusammenhängt, dass mit XE7 für OSX 10.8/10.9 entwickelt werden kann?

Bernhard Geyer 6. Jan 2015 22:18

AW: Mac Problem mit Locationsensor
 
Denke auch das das nichts bringt.
Als Systemrequirements steht OSX 10.8 drauf. Da wird man nicht alle (neuen) Features darauf geprüft haben ob es auch mit 10.7 oder älter läuft.


Und wer will schon für ein OS Entwickeln das vom Hersteller schon seit 2 1/2 Jahren nicht mehr unterstützt wird ... (Das soll jetzt aber keine Vorlage für eine OT-Diskussion liefern)

Du weißt jetzt was du machen musst damit deine Exe auch unter nicht unterstützten älteren OS läuft.


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:34 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz