Page 1 of 1

A Little advice Needed for MAC & iOS

Posted: Sun May 03, 2020 7:40 am
by collectordave
Hi All,

Written a large programme that works seamlessly on both MAC and Windows with all the quirks of each one. It is a quite large DB using Sqlite.

PB always seems to have a get out of jail free card.

I now want to have part of this programme run on the iPAD this will be a simple flat file database hopefully using Sqlite with very simple displays of the data including images. The idea would be for the iPAD to connect to the MAC for the iPAD to grab the data needed.

I have seen Swift and others but I would appreciate just a few words on where to start, what to download etc. I am using a MacBook pro so would like to keep using this if possible to build the app for the iPAD.

Regards

CD

Re: A Little advice Needed for MAC & iOS

Posted: Sun May 03, 2020 10:33 am
by mk-soft
Xcode provides the development environment for IOS (iPad, iPhone).
I didn't start with it, but Swift its a good choice.

P.S.
The next point is that you can't access the database directly.
To access the database you need to run a server on Window or macOS which then accesses the database.
For example via strings (UTF8) with control characters STX ($02) and ETX ($03)

First step with swift ...
https://github.com/swiftsocket/SwiftSocket

Re: A Little advice Needed for MAC & iOS

Posted: Sun May 03, 2020 6:49 pm
by Danilo
Apple's developer site: developer.apple.com => developer.apple.com/develop

You can get Xcode in the AppStore, or in the download area of Apple's developer site (login using your Apple ID).

If you like to use the BASIC language, you may want to have a look at www.b4x.com => www.b4x.com/b4i. (Documentation => "SQLite library")
If you have a Mac, B4i is $59 (Standard) or $119 (Enterprise). Checkout the B4X Video Tutorials

Re: A Little advice Needed for MAC & iOS

Posted: Mon May 04, 2020 10:19 am
by hoerbie
As you are programming in PureBasic, why not using SpiderBasic? It builds Javascript files from a lot of your normal PB code, then this Javascript files can be run directly in mobile browser or they can be compiled to a browser app for iOS/iPadOS and Android using Apache Cordova. It's a bit fiddling around at start, but it works.
If you have more professional use and need more speed or access to mobile libraries, but want to use some basic language for coding, have a look at B4i.
If you want really native programming use Apples Xcode/Swift.
A last alternative could be Xojo, but it is expensive compared to all others.

And just to add: if you want a real app and install it on a lot of (not your own) devices, you need an Apple developer account (99$/year)