Re: Check for first run

2011-04-18 Thread Bob Sneidar
Trouble with the prefs approach is that sometimes prefs will get "corrupted" whatever that means, and a user will delete it expecting that the app will create another one with the default settings. Making them go through the setup procedure can actually cause more problems, if the setup has info

Re: Check for first run

2011-04-18 Thread Trevor DeVore
On Sun, Apr 17, 2011 at 2:42 AM, Maarten Koopmans < maarten.koopm...@gmail.com> wrote: > Is there a best practice for checking if the application is on a > first run for a standalone(especially one that will go to an App store > eventually)? > > I simply need to ask the user a few questions on fi

Re: Check for first run

2011-04-17 Thread Maarten Koopmans
Yes, I was thinking along those lines but... Iw ant the user to point to a root folder, where (among others) the db file will be stored :-) But I should be able to take it from here. --Maarten On Sun, Apr 17, 2011 at 11:55 PM, Pete wrote: > Even if the db does exist, just set a value into a col

Re: Check for first run

2011-04-17 Thread Pete
Even if the db does exist, just set a value into a column in in to indicate initialisation has occurred. Pete Molly's Revenge On Sun, Apr 17, 2011 at 1:38 PM, Warren Samples wrote: > On Sunday, April 17, 2011 01:42:28 AM Maarten Koopmans wrote: > > Hi, > > > > I

Re: Check for first run

2011-04-17 Thread Warren Samples
On Sunday, April 17, 2011 01:42:28 AM Maarten Koopmans wrote: > Hi, > > Is there a best practice for checking if the application is on a > first run for a standalone(especially one that will go to an App store > eventually)? > > I simply need to ask the user a few questions on first run (and set

Re: Check for first run

2011-04-17 Thread dunbarx
Jacques. There was to be a connection to an sql database, so I assumed that the stack in question was not the executable. Craig -Original Message- From: J. Landman Gay To: How to use LiveCode Sent: Sun, Apr 17, 2011 2:13 pm Subject: Re: Check for first run On 4/17/11 12:56

Re: Check for first run

2011-04-17 Thread J. Landman Gay
On 4/17/11 12:56 PM, dunb...@aol.com wrote: Hi. Couldn't you set a custom property that is initially set to "unopened", and then set to "mature" after your questions? The app checks the property each time it opens, and, of course, it mostly finds "mature". A standalone can't save changes to i

Re: Check for first run

2011-04-17 Thread dunbarx
Hi. Couldn't you set a custom property that is initially set to "unopened", and then set to "mature" after your questions? The app checks the property each time it opens, and, of course, it mostly finds "mature". -Original Message- From: Maarten Koopmans To: use-livecode@lists.run

Re: Check for first run

2011-04-17 Thread Gerry
Check for a local file - if it isn't there you can be sure that it is the first time the app has been launched. After you ask your user your questions, write the file. On subsequent launches when you check for the file...it's there, so skip the questions. So on openstack do: put specialfolder