My little test app for Android is working great and so I’m now working on an iOS version but I’m falling at the first hurdle.
I was to create a class that will handle my database interaction but the following method
method RootViewController.databasePath: NSString;
begin
var paths: NSArray := NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true);
var documentDirectory := paths.objectAtIndex(0);
exit documentDirectory.stringByAppendingPathComponent("SamView.sqllite.db");
end;
fails as NSDocumentDirectory and NSUserDomainMask are not recognised. Am I missing something in my uses clause (I have Foundation and UIKit at present).
I’ve posted here in the Fire forum as that’s what i’m using. I haven’t tried on my Windows machine yet. I’m sure I’m missing something obvious…
Best regards,
Simon