MacWorld UK

2016-10-04 Thread Paul Hibbert
How can a major UK Mac magazine ignore LiveCode in an article titled "Complete 
guide to coding and programming on a Mac: Best programming languages for Mac 
coders | How to get started as an app developer”.

Link: 
http://www.macworld.co.uk/how-to/mac/complete-guide-coding-programming-apps-mac-3645777/

I’ve left a comment on their page, may help with a few more comments.

Paul
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Supercard 4.8 public beta

2016-10-04 Thread Earthednet-wp
I waited a year for the DOS version. It never came. Then 
I went to Director.
Bill

William Prothero
http://es.earthednet.org

> On Oct 4, 2016, at 2:44 PM, Dr. Hawkins  wrote:
> 
> On Tue, Oct 4, 2016 at 2:18 PM, Bob Sneidar 
> wrote:
> 
>> Agreed. I probably paid for the original Supercard and about 4 upgrades
>> over the years and never produced anything with it, but the ability to
>> continue working in a hypercard-like environment and wanting it to not go
>> the way of Hypercard was enough to keep me on the gravy train.
>> 
> 
> If I'd kept using it another year, I'd probably be wealthy now--I had no
> clue that the DOS version was actually going to ship in another year, and
> dropped my project.
> 
> *sigh*
> 
> I last used 1.5 . . . but a couple of years ago, I *was* able to import the
> stacks to the trial version of the then-current version (4.5?).  I had to
> drag out an old MacClassic, restore from a stack of backup disks (an
> adventure in itself, finding a copy of the backup program), write to
> floppy, convince a FreeBSD machine to read that, and then either burn a cd
> or use a usb to get it onto a modern mac . . .
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: using Sierra

2016-10-04 Thread Roger Guay
Yes! And, It still is wonky in LC8 as well.

Roger



> On Oct 4, 2016, at 1:08 PM, Dr. Hawkins  wrote:
> 
> Anyway, I'm noting that scrolling from the magic trackpad seems quirky in
> LC 7.
> 
> At times, it scrolls insanely fast, and at times it doesn't seem to refocus
> properly--eg, in the panes of the application browser.
> 
> Are other people seeing the same?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Supercard 4.8 public beta

2016-10-04 Thread Dr. Hawkins
On Tue, Oct 4, 2016 at 2:18 PM, Bob Sneidar 
wrote:

> Agreed. I probably paid for the original Supercard and about 4 upgrades
> over the years and never produced anything with it, but the ability to
> continue working in a hypercard-like environment and wanting it to not go
> the way of Hypercard was enough to keep me on the gravy train.
>

If I'd kept using it another year, I'd probably be wealthy now--I had no
clue that the DOS version was actually going to ship in another year, and
dropped my project.

*sigh*

I last used 1.5 . . . but a couple of years ago, I *was* able to import the
stacks to the trial version of the then-current version (4.5?).  I had to
drag out an old MacClassic, restore from a stack of backup disks (an
adventure in itself, finding a copy of the backup program), write to
floppy, convince a FreeBSD machine to read that, and then either burn a cd
or use a usb to get it onto a modern mac . . .


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Supercard 4.8 public beta

2016-10-04 Thread Bob Sneidar
Agreed. I probably paid for the original Supercard and about 4 upgrades over 
the years and never produced anything with it, but the ability to continue 
working in a hypercard-like environment and wanting it to not go the way of 
Hypercard was enough to keep me on the gravy train.

Bob S


On Sep 22, 2016, at 12:27 , stephen barncard 
> wrote:

I was a hypercard ACE but my three purchases of Supercard over the years
never got used.  I found the whole system baffling, an annoying workflow.
I always went back to HC.

sqb

Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


using Sierra

2016-10-04 Thread Dr. Hawkins
The shared iCloud drive was compelling enough for me to convert to Sierra
without waiting months.  It does a *far* better drive at syncing than Wuala
used to or than SpiderOak does, and without churning cpu and battery on my
laptops.  (pretty much 100% cpu whenever on, and still doesn't finish
updates).

Anyway, I'm noting that scrolling from the magic trackpad seems quirky in
LC 7.

At times, it scrolls insanely fast, and at times it doesn't seem to refocus
properly--eg, in the panes of the application browser.

Are other people seeing the same?

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive Script

2016-10-04 Thread Paul Dupuis
Here is an example:

function listDatagrids pObject
  local dataGridList
  repeat with i=1 to the number of groups of pObject
if grp i of pObject is a datagrid then -- fix this line
  put whatever data on the datagrid & return after dataGridList --
fix this line
else
  put listDataGrids(long ID of grp i of pObject) into childList
  if childList is not empty then put childList & return after
dataGridList
end if
  end repeat
  return dataGridList
end listDataGrids

there are 2 lines you need to fix - one is how to tell a grp is a
datagrid. I recall a property or API you can check, but didn't have the
datagrid PDF handy.
The other is whatever info (short name, long ID, etc. you want for each
datagrid

Call it with the long id of the card. As in:

put listDatagrids(long id of cd x of stack y) into myListOfDatagrids

On 10/4/2016 3:16 PM, Bob Sneidar wrote:
> Hi all. 
>
> Some time back someone had the need to enumerate every datagrid on a card 
> even if the datagrids were themselves grouped with other objects. I cannot 
> now find that thread, or any stack treating the issue in my downloads folder. 
> It would involve recursion because the groupnames is a property of a card and 
> not another group. If groups had the groupname properties it would be easy. 
>
> As it is I then have to enumerate all groups and do recursive calls passing 
> the current group as the next group to enumerate. If none of that makes sense 
> just think, "42". 
>
> My trouble is I am having a difficult time formulating the recursive 
> function, and I cannot find recursion anywhere in the Livecode Lessons. I 
> need an example of a recursive function. 
>
> Bob S
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: use "" as an array key

2016-10-04 Thread Bob Sneidar
sqlYoga handles sql NULL by converting them to the string "NULL". When writing 
back to the table it handles that too. the difference in where clauses is that 
you cannot use equal (=) as an operator. You have to use "is". Also I think in 
an insert or update statement in the set clause you have to use the NULL 
constant and not enclose in single quotes 'NULL' which would be the string.

Bob S


On Sep 24, 2016, at 24:35 , Peter TB Brett 
> wrote:

On 24/09/2016 04:26, Kay C Lan wrote:
On Fri, Sep 23, 2016 at 2:27 AM, Peter TB Brett
> wrote:

"" isn't "the absence of a string", it's a string that's 0 characters long.
Being able to use it as an array key is important for being able to
represent real-world data in an array.

It's an important point that "", a 0 character string is not the same
as NULL because we as humans often 'see them' as the same.

Very confusingly, "null" in LiveCode Script is _not_ the same as "NULL" in SQL.

In LiveCode, "null" is shorthand for "numtochar(0)".

LiveCode Script doesn't really have the concept of "no value at all" that is 
modelled by SQL's "NULL".  Most of the syntax fakes it by using the empty 
string, but unfortunately that doesn't work everywhere.

LiveCode Builder has "nothing", which is a proper "no value".

 Peter

--
Dr Peter Brett >
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Issues with 'Open Recent File' on LC 8.1.1rc1

2016-10-04 Thread Graham Samuel
My list of recent files should include a stack I’m working on which I keep in 
DropBox (as is usual, there’s a local copy  of this file on my Mac). But the 
name of this file tends to disappear from the ‘Recent Files’ list, whereas 
stuff that dates back many previous versions of LC is still there, including 
strangely something that was in DropBox several versions ago. This may be a 
bug, but I have not yet got a recipe.

Is anyone else experiencing this? I can’t see anything relevant in the bug 
database.

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: use "" as an array key

2016-10-04 Thread Bob Sneidar
noticed that too. Doesn't seem to hurt anything. 

Bob S


> On Sep 22, 2016, at 10:58 , Matt Maier  wrote:
> 
> I find myself in want of a YAML library again. Mark posted some functions
> on the forum that I'm debugging
> http://forums.livecode.com/viewtopic.php?f=7=21434
> 
> Something I discovered while debugging is that "" is being accepted as an
> array key.
> 
> It seems like it shouldn't be possible to use the absence of a string as an
> array key. Is it supposed to work that way? I'm using 8.0.1 on Windows.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Recursive Script

2016-10-04 Thread Bob Sneidar
Hi all. 

Some time back someone had the need to enumerate every datagrid on a card even 
if the datagrids were themselves grouped with other objects. I cannot now find 
that thread, or any stack treating the issue in my downloads folder. It would 
involve recursion because the groupnames is a property of a card and not 
another group. If groups had the groupname properties it would be easy. 

As it is I then have to enumerate all groups and do recursive calls passing the 
current group as the next group to enumerate. If none of that makes sense just 
think, "42". 

My trouble is I am having a difficult time formulating the recursive function, 
and I cannot find recursion anywhere in the Livecode Lessons. I need an example 
of a recursive function. 

Bob S
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: very often "Scripts externally modified" popup

2016-10-04 Thread Bob Sneidar
This sounds like what I was running into where a handler didn't work until I 
copied the text of the script into a text only editor, then copied it back into 
the script. I know there was a difference because after pasting I had to 
recompile. If the scripts are identical you will not get the dirty flag. 

Bob S


> On Sep 12, 2016, at 08:11 , Matthias Rebbe 
>  wrote:
> 
> Hi again,
> 
> i found out, what was causing the problem.
> 
> I´ve pasted an utf encoded script into the script editor. With that script i 
> can reproduce the behaviour.
> If i paste the same script iso or mac roman encoded into the script editor 
> the problem is solved.
> 
> Is this a known behaviour or should i file a bug?
> 
> Matthias
> 
> 
> 
>> If you have a reliable recipe then please open a report.
>> 
>> Thanks
>> 
>> Monte
>> 
>> Sent from my iPhone
>> 
>>> On 12 Sep 2016, at 8:04 PM, Matthias Rebbe >> m-r-d.de > wrote:
>>> 
>>> This is driving me crazy. So is anyone else noticing this and i should 
>>> submit it as a bug or is there something on my side what i can change
>>> to ged rid of that popup.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Reset the foreground color

2016-10-04 Thread Ludovic THEBAULT

Le 4 oct. 2016 à 19:15, Klaus major-k  a écrit :

> Bonsoir Ludovic,
> 
>> Am 04.10.2016 um 19:06 schrieb Ludovic THEBAULT 
>> :
>> 
>> Hello,
>> 
>> I've a field where i change color of some chars by script.
>> If i want to "reset" the color of all my text this code doesn't work :
>> set the foregroundcolor of fld "myText" to black
>> I really need to do a repeat on all chars ???
> 
> yep, but this will do the trick:
> ...
> set the foregroundcolor of char 1 to -1 of fld "myText" to black
> ...

Better ! Thanks !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Reset the foreground color

2016-10-04 Thread Klaus major-k
Bonsoir Ludovic,

> Am 04.10.2016 um 19:06 schrieb Ludovic THEBAULT 
> :
> 
> Hello,
> 
> I've a field where i change color of some chars by script.
> If i want to "reset" the color of all my text this code doesn't work :
> set the foregroundcolor of fld "myText" to black
> I really need to do a repeat on all chars ???

yep, but this will do the trick:
...
set the foregroundcolor of char 1 to -1 of fld "myText" to black
...

> Thanks

Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Reset the foreground color

2016-10-04 Thread Ludovic THEBAULT
Hello,

I've a field where i change color of some chars by script.
If i want to "reset" the color of all my text this code doesn't work :

set the foregroundcolor of fld "myText" to black

I really need to do a repeat on all chars ???

Thanks

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wondering about iOS background tasks

2016-10-04 Thread Earthednet-wp
Thanks, Henry!
I guess that saves the security risk of having apps run in the background and 
potentially causing security problems. It makes sense.
Thanks again,
Bill

William Prothero
http://es.earthednet.org

> On Oct 4, 2016, at 1:13 AM, Mark Wilcox  wrote:
> 
>> On Mon, Oct 3, 2016, at 06:17 PM, William Prothero wrote:
>> Folks:
>> My currently finished app needs to run continuously, as it must play a
>> series of audio files. I found that, in iOS, audio will play when the app
>> goes to the background, but the app is only completing the current audio
>> file and the next one isn’t loaded, because the app isn’t really running.
>> I solved this by setting mobileLockIdleTimer. This keeps the app in the
>> front and it is what I want. Problem solved.
> 
> Just FYI, mobileLockIdleTimer will prevent the device locking and
> turning off the screen, which is a real battery killer. A mobile device
> can play audio with the screen off for many, many hours. Of course if
> you actually need the screen on, no problem.
> 
> On iOS, assuming you have the audio background mode set (in the
> info.plist), the device doesn't suspend your app while it's still
> playing audio. It may be the case that the way LiveCode works with audio
> APIs, or the way you're using them, means you stop playing between
> tracks for too long, so the system assumes the audio is finished. Might
> be worth further investigation.
> 
> -- 
>  Mark Wilcox
>  m...@sorcery-ltd.co.uk
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [ANN] This Week in LiveCode 53

2016-10-04 Thread Trevor DeVore
On Tuesday, October 4, 2016, Roger Eller 
wrote:

> It is nice to see more emphasis on open-source, encouraging the masses to
> be a part, but when it comes to a blog/newsletter, I believe the author
> should be in control of the content.  /2 cents (USD)
>

 Isn't the author still in control? You have to submit a pull request and
Peter has to accept it. If he doesn't accept it the change isn't made.

-- 
Trevor DeVore
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] This Week in LiveCode 53

2016-10-04 Thread Mike Kerner
+1

On Tue, Oct 4, 2016 at 8:27 AM, Roger Eller 
wrote:

> It is nice to see more emphasis on open-source, encouraging the masses to
> be a part, but when it comes to a blog/newsletter, I believe the author
> should be in control of the content.  /2 cents (USD)
>
> ~Roger
>
> On Oct 4, 2016 5:46 AM, "Peter TB Brett"  wrote:
>
> > On 03/10/2016 19:20, Alejandro Tejada wrote:
> >
> >> Hi Peter,
> >>
> >> Could you make a change in the newsletter?
> >>
> >> Could you change this:
> >> "Alejandro Tejada has dug up some
> >> 23-year-old HyperCard stacks"
> >>
> >> For this?
> >> "Lagi Pittas, Andrew Ferguson and
> >> Alejandro Tejada has dug up some
> >> 23-year-old HyperCard stacks
> >>
> >> Thanks in advance!
> >>
> >
> > Done!  But next time, you can just make the changes yourself!
> >
> > https://github.com/livecode/this-week-in-livecode
> >
> >  Peter
> >
> > --
> > Dr Peter Brett 
> > LiveCode Technical Project Manager
> >
> > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] This Week in LiveCode 53

2016-10-04 Thread Roger Eller
It is nice to see more emphasis on open-source, encouraging the masses to
be a part, but when it comes to a blog/newsletter, I believe the author
should be in control of the content.  /2 cents (USD)

~Roger

On Oct 4, 2016 5:46 AM, "Peter TB Brett"  wrote:

> On 03/10/2016 19:20, Alejandro Tejada wrote:
>
>> Hi Peter,
>>
>> Could you make a change in the newsletter?
>>
>> Could you change this:
>> "Alejandro Tejada has dug up some
>> 23-year-old HyperCard stacks"
>>
>> For this?
>> "Lagi Pittas, Andrew Ferguson and
>> Alejandro Tejada has dug up some
>> 23-year-old HyperCard stacks
>>
>> Thanks in advance!
>>
>
> Done!  But next time, you can just make the changes yourself!
>
> https://github.com/livecode/this-week-in-livecode
>
>  Peter
>
> --
> Dr Peter Brett 
> LiveCode Technical Project Manager
>
> lcb-mode for Emacs: https://github.com/peter-b/lcb-mode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Elanor Buchanan's stacks

2016-10-04 Thread Richmond

Jolly interesting, but not what I expected to be listed when I cracked
open the Start Center of 8.1.1 on Xubuntu 64-bit 16.04.

Bug 18535

Sorry; late to the party: been ill for quite some time.

Love, Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iTunesConnect & Bitcode Auto-Recompilation

2016-10-04 Thread Dave Kilroy
Thanks Monte - I’ll keep away from it as well then…


> We do not have bitcode enabled for LiveCode builds. 
> 
> Cheers 
> 
> Monte 
> 
> Sent from my iPhone 
> 
> 
>> On 3 Oct 2016, at 17:42, Dave Kilroy  wrote:
>> 
>> Hi
>> 
>> Has anyone enabled this with a LiveCode app yet on iTunesConnect? In the 
>> Bitcode Auto-Recompilation section it states:
>> 
>> "Occasionally, we may automatically recompile apps that include bitcode to 
>> improve hardware support or to optimize our software."
>> 
>> Anyone know if this could effect a LiveCode-made app and are we OK to let it 
>> recompile our apps? 
>> 
>> Dave
>> 
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [ANN] This Week in LiveCode 53

2016-10-04 Thread Peter TB Brett

On 03/10/2016 19:20, Alejandro Tejada wrote:

Hi Peter,

Could you make a change in the newsletter?

Could you change this:
"Alejandro Tejada has dug up some
23-year-old HyperCard stacks"

For this?
"Lagi Pittas, Andrew Ferguson and
Alejandro Tejada has dug up some
23-year-old HyperCard stacks

Thanks in advance!


Done!  But next time, you can just make the changes yourself!

https://github.com/livecode/this-week-in-livecode

 Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wondering about iOS background tasks

2016-10-04 Thread Mark Wilcox
On Mon, Oct 3, 2016, at 06:17 PM, William Prothero wrote:
> Folks:
> My currently finished app needs to run continuously, as it must play a
> series of audio files. I found that, in iOS, audio will play when the app
> goes to the background, but the app is only completing the current audio
> file and the next one isn’t loaded, because the app isn’t really running.
>  I solved this by setting mobileLockIdleTimer. This keeps the app in the
> front and it is what I want. Problem solved.

Just FYI, mobileLockIdleTimer will prevent the device locking and
turning off the screen, which is a real battery killer. A mobile device
can play audio with the screen off for many, many hours. Of course if
you actually need the screen on, no problem.

On iOS, assuming you have the audio background mode set (in the
info.plist), the device doesn't suspend your app while it's still
playing audio. It may be the case that the way LiveCode works with audio
APIs, or the way you're using them, means you stop playing between
tracks for too long, so the system assumes the audio is finished. Might
be worth further investigation.

-- 
  Mark Wilcox
  m...@sorcery-ltd.co.uk



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wondering about iOS background tasks

2016-10-04 Thread hlowe
Bill,

iOS supports local notifications (as supposed to remote notifications) that
work even if the app that created them is no longer running. See:

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/WhatAreRemoteNotif.html

Basically the app creates a local (device) time-based notification and
registers it with iOS using the LC command 'CreateNewMobileNotification'. 
When the local notification date and time arrives iOS will send the
notification back to the app that created it. If the app is not running iOS
will issue a notification alert to the user, providing the option to
automatically launch the app. In LC the app receives a
'localNotificationReceived' message that includes information about the
notification. The app handles this message (and its associated data) to
process the notification alert.

Henry





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Wondering-about-iOS-background-tasks-tp4709152p4709157.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode