Re: Widget request (native text scroller for iOS)

2016-11-30 Thread John Allijn
Hi Jacqueline, 
Thanks for the long answer and for sharing the code. 
I’ll try it out tomorrow!
best regards,
John.



> On 30 Nov 2016, at 21:34, J. Landman Gay <jac...@hyperactivesw.com> wrote:
> 
> On 11/30/16 7:35 AM, John Allijn wrote:
>> I can’t get the scroller working
> 
> I haven't had any problem with scrollers on either iOS or Android, barring a 
> specific vScroll bug that's been reported. 
> (http://quality.livecode.com/show_bug.cgi?id=18924)  Aside from that they 
> work very well as long as you follow the instructions here:
> 
> <http://lessons.livecode.com/m/4069/l/94412-creating-a-native-scroller-to-scroll-a-field?id=94412-creating-a-native-scroller-to-scroll-a-field>
> 
> Scrollers are picky, you have to make sure that:
> 
> 1. The full length of the field is displayed. It can't be a scrolling field, 
> it has to be a very tall field at its full height so all content is visible. 
> It's okay if it runs off the window.
> 2. The field must have lockloc set to true.
> 3. The field must be in a group, and generally it's the only thing in the 
> group. The group should be sized to the rectangle you want the user to see. 
> It's lockloc must be set to true.
> 4. For now (until the bug is fixed) the vScroll of the group should be set to 
> 0 when the mobile scroller is created, and the mobile vScroll should also be 
> 0. (A workaround is in the bug report if you want to set the vScroll to 
> something else.)
> 
> I have a simplified handler that creates a mobile scroller which has been 
> working for a long time. The only parameter it needs is the short name of the 
> group that contains the field. (The content of the group doesn't have to be a 
> field, it can be an image or anything else.)
> 
> I find that using names instead of IDs is much easier because you don't have 
> to bother with "the result" or track the reference in a script local. It just 
> works, provided each scrolling group has a unique name. When you want to 
> delete the scroller you can also just use the name. This handler 
> automatically creates a scroller with the same name as the group it is 
> scrolling.
> 
> command createScroller pName
>  if the environment is not "mobile" then exit createScroller
>  deleteMobileControl pName -- custom handler, in case one already exists
>  set the vScroll of control pName to 0 -- init for alignment
>  set the hScroll of control pName to 0
>  mobileControlCreate "scroller", pName
>  mobileControlSet pName, "rect", the rect of control pName
>  put  (0,0,the formattedwidth of control pName,the formattedheight of control 
> pName) into tRect
>  mobileControlSet pName, "contentRect",tRect
>  mobileControlSet pName, "hScroll",0
>  mobileControlSet pName, "vScroll",0
>  mobileControlSet pName, "hIndicator",false
>  mobileControlSet pName, "vIndicator",true
>  mobileControlSet pName, "visible", true
> end createScroller
> 
> This is enough to create a basic scroller. There are other settings you might 
> want to add for iOS, such as the canBounce, etc., and you may want to change 
> the v and h indicator settings. Adding more settings is easy, but the above 
> does the basic work.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


___
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: Widget request (native text scroller for iOS)

2016-11-30 Thread John Allijn
I can’t get the scroller working but have a workaround for anyone else who may 
have this problem. 
Not so fancy, but it works…

use a normal text field and lock the text 
then set the script of the field to this:

local sStartV

local tDistance

local tStartScroll


on mouseDown

  put the mouseV into sStartV

  put the scroll of me into tStartScroll

end mouseDown


on mouseStillDown

  put the mouseV - sStartV into tDistance

  set the scroll of me to tStartScroll - tDistance

end mouseStillDown




Best regards,
John.






> On 29 Nov 2016, at 19:46, John Allijn <john.allijn...@gmail.com> wrote:
> 
> Good to know.
> Thanks!
> 
> 
>> On 29 Nov 2016, at 19:40, Richard Gaskin <ambassa...@fourthworld.com> wrote:
>> 
>> John Allijn wrote:
>> 
>>>> Op 29 nov. 2016 om 17:15 heeft Richard Gaskin het volgende geschreven:
>>>> Widgets are great for making new kinds of objects, but if all that's
>>>> needed here is to fix a bug with scrolling on the existing field
>>>> object IMO that's just a bug.
>>> 
>>> Hi Richard,
>>> I don't think it's a bug. It's just me not being a very skilled
>>> programmer :)
>>> Thats why I choose livecode.
>>> The thing is that native mobile objects are almost completely
>>> implemented by code. Where as desktop objects can be dragged into
>>> a stack and than be accessed and updated by code. It is my personal
>>> opinion that a text field that I drag into a stack should behave as
>>> a native mac field on the mac and a native 'scroller' on iOS. And as
>>> a programmer in livecode I should benefit from the code-once-deploy-
>>> everywhere features of livecode.
>>> I understand that the implementation of fields in livecode is not yet
>>> at this point.
>> 
>> But it should be.  Simplicity of multi-platform deployment is why we choose 
>> LiveCode.
>> 
>> And that's why I consider this a bug.
>> 
>> And thankfully this (along with a few other refinements) is among the funded 
>> goals the team is working on:
>> <https://livecode.com/project/infinite-livecode-native-field-object/>
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.comhttp://www.FourthWorld.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
> 

___
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: Widget request (native text scroller for iOS)

2016-11-29 Thread John Allijn
Good to know.
Thanks!


> On 29 Nov 2016, at 19:40, Richard Gaskin <ambassa...@fourthworld.com> wrote:
> 
> John Allijn wrote:
> 
> >> Op 29 nov. 2016 om 17:15 heeft Richard Gaskin het volgende geschreven:
> >> Widgets are great for making new kinds of objects, but if all that's
> >> needed here is to fix a bug with scrolling on the existing field
> >> object IMO that's just a bug.
> >
> > Hi Richard,
> > I don't think it's a bug. It's just me not being a very skilled
> > programmer :)
> > Thats why I choose livecode.
> > The thing is that native mobile objects are almost completely
> > implemented by code. Where as desktop objects can be dragged into
> > a stack and than be accessed and updated by code. It is my personal
> > opinion that a text field that I drag into a stack should behave as
> > a native mac field on the mac and a native 'scroller' on iOS. And as
> > a programmer in livecode I should benefit from the code-once-deploy-
> > everywhere features of livecode.
> > I understand that the implementation of fields in livecode is not yet
> > at this point.
> 
> But it should be.  Simplicity of multi-platform deployment is why we choose 
> LiveCode.
> 
> And that's why I consider this a bug.
> 
> And thankfully this (along with a few other refinements) is among the funded 
> goals the team is working on:
> <https://livecode.com/project/infinite-livecode-native-field-object/>
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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


___
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: Widget request (native text scroller for iOS)

2016-11-29 Thread John Allijn
Hi Richard,
I don't think it's a bug. It's just me not being a very skilled programmer :)
Thats why I choose livecode. 
The thing is that native mobile objects are almost completely implemented by 
code. Where as desktop objects can be dragged into a stack and than be accessed 
and updated by code. It is my personal opinion that a text field that I drag 
into a stack should behave as a native mac field on the mac and a native 
'scroller' on iOS. And as a programmer in livecode I should benefit from the 
code-once-deploy-everywhere features of livecode. 
I understand that the implementation of fields in livecode is not yet at this 
point. And to be fair: it has come a long way in very short time. The fact that 
I can build an app for iOS with livecode is amazing. 
However I use text fields a lot and I find the process of creating, scrolling 
and updating them for iOS way to complex. So I was hoping that someone else 
things so to and had a widget built for it :)
Best regards
John. 

> Op 29 nov. 2016 om 17:15 heeft Richard Gaskin <ambassa...@fourthworld.com> 
> het volgende geschreven:
> 
> John Allijn wrote:
> 
> > Most of the time when I work on an iOS app, I run into problems with
> > scrollers, fields that scroll their contents over the screen.
> >
> > Usually I have just one scrollable field on a card with variable text
> > in it. Most often this text is downloaded from a database and I just
> > put the plain text into this field.
> >
> > Most often, the field does not scroll, does not show up, won’t
> > display all the content, runs over the boundaries that I’ve set or
> > is just badly positioned.
> >
> > The last few apps I made, I worked around this problem by designing
> > my app around it. (splitting the text in chunks that are big enough
> > to display and using swipes to go to the next card with more content)
> > but this has been annoying me ever since.
> >
> > I was wondering if someone had, or was willing to make, a livecode
> > widget for a scrolling field. That way we can all just drag it in the
> > project, fill it with text and get some sleep again :)
> 
> Widgets are great for making new kinds of objects, but if all that's needed 
> here is to fix a bug with scrolling on the existing field object IMO that's 
> just a bug.
> 
> Has it been reported?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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

___
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

Widget request (native text scroller for iOS)

2016-11-29 Thread John Allijn
Hello,

Most of the time when I work on an iOS app, I run into problems with scrollers, 
fields that scroll their contents over the screen.

Usually I have just one scrollable field on a card with variable text in it. 
Most often this text is downloaded from a database and I just put the plain 
text into this field. 

Most often, the field does not scroll, does not show up, won’t display all the 
content, runs over the boundaries that I’ve set or is just badly positioned. 

The last few apps I made, I worked around this problem by designing my app 
around it. (splitting the text in chunks that are big enough to display and 
using swipes to go to the next card with more content) but this has been 
annoying me ever since. 

I was wondering if someone had, or was willing to make, a livecode widget for a 
scrolling field. That way we can all just drag it in the project, fill it with 
text and get some sleep again :)

Any help would be greatly appreciated!
best regards,
John.
___
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: Saving images to webserver

2016-11-15 Thread John Allijn
Hi Richard
Thank you for your detailed answer. 
I will dive into this. 
Thanks again!  J. 

> Op 15 nov. 2016 om 19:27 heeft Bob Sneidar <bobsnei...@iotecdigital.com> het 
> volgende geschreven:
> 
> No it is not. You need to use secure ftp instead if possible. FTP creds are 
> sent clear text if I am not mistaken. 
> 
> Bob S
> 
> 
>> On Nov 15, 2016, at 02:20 , John Allijn <john.allijn...@gmail.com> wrote:
>> 
>> Hi Keith,
>> thanks for your fast reply. 
>> Is ftp safe enough? If I understand it right, the password is sent within 
>> the URL (not encrypted)?
>> 
>>> On 15 Nov 2016, at 11:18, Keith Martin <thatke...@mac.com> wrote:
>>> 
>>> On 15 Nov 2016, at 8:43, John Allijn wrote:
>>> 
>>>> What is the best way to save pictures and how do I handle the image data?
>>> 
>>> For the server, one simple approach would be to use ftp. Set up whatever 
>>> ftp user config you want on the server and use curl or similar from your 
>>> app to send JPEG image file data. Otherwise you'd need to look at php or 
>>> similar server-side file upload setups.
>>> 
>>> k
>>> 
>>> 
>>> ---
>>> 
>>> Keith Martin
>>> Senior Lecturer, LCC (University of the Arts London)
>>> Technical Editor, MacUser magazine (1997-2015)
>>> http://PanoramaPhotographer.com
>>> http://thatkeith.com
>>> +44 (0)7909541365
>>> 
>>> ---
>>> ___
>>> 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
> 
> 
> ___
> 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: Saving images to webserver

2016-11-15 Thread John Allijn
Hi Keith,
thanks for your fast reply. 
Is ftp safe enough? If I understand it right, the password is sent within the 
URL (not encrypted)?

> On 15 Nov 2016, at 11:18, Keith Martin <thatke...@mac.com> wrote:
> 
> On 15 Nov 2016, at 8:43, John Allijn wrote:
> 
>> What is the best way to save pictures and how do I handle the image data?
> 
> For the server, one simple approach would be to use ftp. Set up whatever ftp 
> user config you want on the server and use curl or similar from your app to 
> send JPEG image file data. Otherwise you'd need to look at php or similar 
> server-side file upload setups.
> 
> k
> 
> 
> ---
> 
> Keith Martin
> Senior Lecturer, LCC (University of the Arts London)
> Technical Editor, MacUser magazine (1997-2015)
> http://PanoramaPhotographer.com
> http://thatkeith.com
> +44 (0)7909541365
> 
> ---
> ___
> 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


Saving images to webserver

2016-11-15 Thread John Allijn
Hi
I'm working on a mobile app for iOS. In this app I would like to enable the 
user to take a picture and then save it to my webserver at a hosting provider 
(shared hosting). 

I'v been looking at different ways to do that but can't figure out where to 
start. 

What is the best way to save pictures and how do I handle the image data? 
Should I create a php or html file? If so, what methods can I use to save the 
file to a directory? (I can handle the ios part i think. My only blind spot 
here is the server side)


___
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: iOS simulator not found after updating LC and Xcode

2016-11-03 Thread John Allijn
Thanks for the info. 
Xcode was upgraded, so the old version was gone. I’m now downloading the 4,5GB 
8.0 version from developer.apple.com . hope that 
works!
thanks again!


> On 03 Nov 2016, at 15:45, Thierry Douez  wrote:
> 
> 2016-11-03 15:37 GMT+01:00 Bob Sneidar :
> 
>> Which version works with which should probably be published in a document,
>> and maybe already has been.
>> 
> 
> ​Hi Bob,
> 
> There is one place:​
> 
> https://livecode.com/resources/support/ask-a-question/
> 
> ​but it needs to be updated too :)
> ​
> ​Thierry
> ​
> ___
> 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: iOS simulator not found after updating LC and Xcode

2016-11-03 Thread John Allijn
Installing livecode 9.0.0 DP1  does not fix it. I'm now downloadind the ios10.0 
simulator. Maybe that helps...

> Op 3 nov. 2016 om 10:07 heeft Thierry Douez <th.do...@gmail.com> het volgende 
> geschreven:
> 
> Mmm, not sure as I'm far away from my computer,
> but I think you need Xcode 8 ! not 8.1.
> 
> Hope someone else could confirm...
> 
> Regards,
> 
> Thierry
> 
> 
> 
> 2016-11-03 9:57 GMT+01:00 John Allijn <john.allijn...@gmail.com>:
> 
>> Hi,
>> Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now
>> LiveCode can’t find any simulators for iOS.
>> In the Livecode preferences the list with simulators is empty. When I
>> click Add Entry and select the new Xcode app, it gives an error:
>> 
>> "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS
>> SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0”
>> 
>> When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed.
>> I can also see the installed SDK’s in the /developer folder on my mac but
>> When I click “Add Entry” these simulators and their parent folders are not
>> selectable (grayed out)
>> 
>> Am I doing something wrong?
>> 
> ___
> 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: iOS simulator not found after updating LC and Xcode

2016-11-03 Thread John Allijn
Yes, 8.0 used to work just fine but I thought it would be a good idea to bring 
everything up to date...

> Op 3 nov. 2016 om 10:07 heeft Thierry Douez <th.do...@gmail.com> het volgende 
> geschreven:
> 
> Mmm, not sure as I'm far away from my computer,
> but I think you need Xcode 8 ! not 8.1.
> 
> Hope someone else could confirm...
> 
> Regards,
> 
> Thierry
> 
> 
> 
> 2016-11-03 9:57 GMT+01:00 John Allijn <john.allijn...@gmail.com>:
> 
>> Hi,
>> Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now
>> LiveCode can’t find any simulators for iOS.
>> In the Livecode preferences the list with simulators is empty. When I
>> click Add Entry and select the new Xcode app, it gives an error:
>> 
>> "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS
>> SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0”
>> 
>> When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed.
>> I can also see the installed SDK’s in the /developer folder on my mac but
>> When I click “Add Entry” these simulators and their parent folders are not
>> selectable (grayed out)
>> 
>> Am I doing something wrong?
>> 
> ___
> 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

iOS simulator not found after updating LC and Xcode

2016-11-03 Thread John Allijn
Hi, 
Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now LiveCode 
can’t find any simulators for iOS. 
In the Livecode preferences the list with simulators is empty. When I click Add 
Entry and select the new Xcode app, it gives an error: 

"The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS SDK 
among: 6.1, 7.1, 8.2, 9.2 and 10.0”

When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. 
I can also see the installed SDK’s in the /developer folder on my mac but When 
I click “Add Entry” these simulators and their parent folders are not 
selectable (grayed out)

Am I doing something wrong?

___
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: LCServer on Synology DSM

2016-11-02 Thread John Allijn
The dsm software has improved a lot since in the last two years. 
I use my DS212j for files storage (it even runs owncloud) and a number of cloud 
apps. Apache works fine, as does wordpress. It would be nice if I could get 
LCserver to run. It would than be a really complete test environment. 
I'll give it a try. Maybe it could help others as well and be an extra platform 
for other hobbyists like me :)


> Op 2 nov. 2016 om 18:01 heeft Richard Gaskin  het 
> volgende geschreven:
> 
> Sannyasin Brahmanathaswami wrote:
> 
> > When Apple decided to "end of life" for their big OS X Server.
> > Our net admin here switched to a Synology device as the "Maha"
> > (Great) server on the LAN (15 terrabytes storage or more… not
> > sure exactly.)
> >
> > That change hit hard, because I was running LC Server on top
> > of Apache under on the OS X server.. That said, compared to
> > linux plain vanilla web server… Apple'simple mentation of web
> > framework was horrible, strange paths for CGI, lots of conflicts
> > on the same machine with simple file sharing… it was never very
> > happy camper etc.  Every upgrade would break it…
> >
> > But at least I could to a lot of useful things locally by setting
> > up API's on the machine that could access the file system, and
> > users could access thing via the browser and desktop clients
> > using HTTP to talk to the web server on that box e.g. one really
> > cool tool was to use the server's Locate database for custom
> > search engine.. sheesh my LC implementation worked even better
> > than Spotlight…
> >
> > All gone now … I got a small Lenovo Think box here to set up
> > Ubuntu locally for web services… but no interaction with Synology
> > device because it runs some proprietary flavor of web services
> >…I did not pursue it…
> 
> When I was first looking for a file sharing solution I looked into NASes, 
> even FreeNAS.
> 
> But ultimately I was hoping to find something more than file sharing, 
> something that sync local folders and provides extensible services as well.  
> And ideally it would run under Ubuntu on the same server I use for other 
> things, rather than require me to get a new box with separate drives for the 
> OS and file storage.
> 
> And that's when I found Nextcloud (formerly ownCloud):
> https://nextcloud.com/
> 
> Runs under Apache on just about any Linux system, so I can run it alongside 
> LC Server or anything else, all on one box.  Native clients for Mac, Windows, 
> and Linux mean my LiveCode Plugins folder is always up to date on every 
> machine I use.  And native clients on iOS and Android mean my ebook 
> collection is also in sync.
> 
> And then there's the build-in support for viewing and editing OpenOffice 
> documents, shared calendar and other apps, a good third-party API for more 
> apps, flexible account management, and so much more.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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

___
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: LCServer on Synology DSM

2016-11-02 Thread John Allijn
Thanks Richard
I'll give it a try :)

> Op 2 nov. 2016 om 14:24 heeft Richard Gaskin <ambassa...@fourthworld.com> het 
> volgende geschreven:
> 
> John Allijn wrote:
> 
> > Has anyone tried running the Livecode server on a Synoloy NAS?
> > I use it as a testserver for webpages and was wondering if it would
> > work (and perform well) on this hardware.
> 
> Which model?  This page shows some Synology boxes using x86, while others use 
> ARM-compatible Marvells:
> <https://www.synology.com/en-us/knowledgebase/DSM/tutorial/General/What_kind_of_CPU_does_my_NAS_have>
> 
> The x86 boxes use Atom, Celeron, and Core i3, and some higher-end models use 
> Xeon, so they should run LC Server well.  You may need to add a package or 
> two, depending on what ships in Synology's OS, Disktation Manager (DSM).
> 
> For ARM it's possible that the LC Server build for Raspberry Pi might work.
> 
> The most recent build of LC for RPi is 7.0.4, available here:
> http://downloads.livecode.com/livecode/
> 
> It's a Zip archive easily extracted with the zip command in bash.
> 
> That said, while DSM is Linux-based like Raspbian, I have no clue about 
> dependencies on specific packages which may (or hopefully may not) prevent it 
> from running under DSM.
> 
> But seems worth giving it a shot - I'd be interested to hear how it goes.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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

___
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


LCServer on Synology DSM

2016-11-02 Thread John Allijn
Hi,
Has anyone tried running the Livecode server on a Synoloy NAS? 
I use it as a testserver for webpages and was wondering if it would work (and 
perform well) on this hardware. 


___
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 Apple maps on iOS

2016-10-27 Thread John Allijn
Thanks! I'm using indy: perfect!

> Op 27 okt. 2016 om 16:43 heeft Stephen MacLean <smacl...@madmansoft.com> het 
> volgende geschreven:
> 
> Hi John,
> 
> If you are using Indy or Business, mergMK is exactly what you need… MapKit 
> for iOS.
> 
> Best,
> 
> Steve MacLean
> 
>> On Oct 27, 2016, at 10:08 AM, John Allijn <john.allijn...@gmail.com> wrote:
>> 
>> Hi,
>> 
>> I’m working on a mobile (iPhone) app and I’m a bit stuck at the map portion 
>> of it. 
>> The app is supposed to show a map with POI’s. when you tap the POI, the app 
>> should go to a card with information. 
>> After a bit of trial and error I was able to make a browser object on my 
>> card, but whenever I put an apple map URL in it, It will jump to either 
>> google maps or apple maps, depending on the scheme used. Further more, I 
>> don’t seem to be able to show multiple POI’s on the map.
>> 
>> Has anyone worked with this kind of map-usage before? is there a way to 
>> embed a map into a card and use the POI’s to navigate/jump to different 
>> cards?
>> 
>> thanks in advance!
>> 
>> John. 
>> ___
>> 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

___
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 Apple maps on iOS

2016-10-27 Thread John Allijn
Hi,

I’m working on a mobile (iPhone) app and I’m a bit stuck at the map portion of 
it. 
The app is supposed to show a map with POI’s. when you tap the POI, the app 
should go to a card with information. 
After a bit of trial and error I was able to make a browser object on my card, 
but whenever I put an apple map URL in it, It will jump to either google maps 
or apple maps, depending on the scheme used. Further more, I don’t seem to be 
able to show multiple POI’s on the map.

Has anyone worked with this kind of map-usage before? is there a way to embed a 
map into a card and use the POI’s to navigate/jump to different cards?

thanks in advance!

John. 
___
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

copy a stack from dropbox to temp-folder (script)

2016-09-22 Thread John Allijn
Hi,

I’m trying to copy a file from my dropbox’s public folder to my local
temp-folder.
I get the filename, create a destination path and put the remote file in
the local folder. This seems to work (there is a file by that name in my
temp folder), but when I go to this copied stack I get an “this file is not
a stack”-error.

What am I doing wrong?



here’s my script:

on mouseUp
put “myStack v1.0.0.livecode” into myRemoteFileName

put "https://dl.dropboxusercontent.com/u/14355803/PVT/"; myRemoteFileName
into myRemoteStackName

put "file:"("temporary") into targetFile
revCopyFile myRemoteStackName, targetFile

put specialfolderpath("temporary")& myRemoteFileName into
 stackInTempFolder
go to stack stackInTempFolder

put the result

end mouseUp
___
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: Compare two lists

2013-09-03 Thread John Allijn

Thanks Geoff,
Much appreciated!


On 3-9-2013 1:16, Geoff Canyon wrote:

This is the answer I was about to propose.


On Mon, Sep 2, 2013 at 5:58 AM, Monte Goulding
mo...@sweattechnologies.comwrote:


On 02/09/2013, at 8:57 PM, Monte Goulding mo...@sweattechnologies.com
wrote:


item 1 of tLine,item 2 of tLine,item 3 of tLine

oops... obviously I meant item 1 to 3 of tLine...

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!





___
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



___
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


Compare two lists

2013-09-02 Thread John Allijn
An automated system sends me weekly reports with the following structure: 
Country,city,device_type,numer_of_devices
I'm working on an app that evaluates these reports and there is one thing I 
can't get done. 
I'd like to compare this weeks report with that of last week and report 
changes. 
Output could be something like this:
- UK-London - mobile - added 2 devices
- UAE - Dubai - new location - server - added 1
- FR - Paris - location removed - no more devices
- FR - Marseille - Location Added - mobile - 1 device added
- BE - brussels - no change


In my script I open both reports, copy the contents to two fields and with a 
loop I compare line by line of the two fields. 
This works well as long as only the numbers change. When locations, cities or 
countries are added or deleted, the number of lines of both fields don't match 
anymore and my script doesnt work anymore. 


There is potentially an unlimited number of countries, each with an unlimited 
number of cities that can be added or removed. I tried skipping a line and 
checking if that one matches with the next one in the other list, but obviously 
that didnt work. :(


Does anyone have an idea on how to approach this problem?



Thanks for any insights!!!
—
Sent from Mailbox for iPhone
___
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: Compare two lists

2013-09-02 Thread John Allijn

Hi Alex, Monte,
Thank you for your fast answers and great approaches.
I've been struggling with this for a few weeks now!
thanks, John.


On 2-9-2013 12:58, Monte Goulding wrote:

On 02/09/2013, at 8:57 PM, Monte Goulding mo...@sweattechnologies.com wrote:


item 1 of tLine,item 2 of tLine,item 3 of tLine

oops... obviously I meant item 1 to 3 of tLine...

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!





___
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: URL handling

2013-03-31 Thread John Allijn
Ok, Thanks!



On Mar 31, 2013, at 6:40, Mark Talluto use...@canelasoftware.com wrote:

 On Mar 30, 2013, at 12:28 PM, John Allijn jall...@gmail.com wrote:
 
 Hi,
 I'm working on a windows application that relies a lot on database qeuries. 
 Both reading and writing of data. 
 On the server side I use php scripts. 
 In my application I use syntax like Put URL tURL into tResult.
 It all works well, but I am the only user on the database. 
 I am wondering what happens when lots of people (about a thousand) use this 
 app. Will livecode wait until the php script is finished? Should there be 
 some error handling on time-outs? If so, what is the best way to do that?
 
 Posting data to a php script is blocking.  But, it only takes milliseconds to 
 do the transaction, so it will feel very light.  You can have your php script 
 echo data back to you based on success or failure from its point of view.  
 That echo data will be placed into the variable you are putting into. 
 
 You can then decide what to to based on the contents of that variable.
 
 Mark Talluto
 canelasoftware.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

___
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


URL handling

2013-03-30 Thread John Allijn
Hi,
I'm working on a windows application that relies a lot on database qeuries. 
Both reading and writing of data. 
On the server side I use php scripts. 
In my application I use syntax like Put URL tURL into tResult.
It all works well, but I am the only user on the database. 
I am wondering what happens when lots of people (about a thousand) use this 
app. Will livecode wait until the php script is finished? Should there be some 
error handling on time-outs? If so, what is the best way to do that?
Best regards,
John Allijn



___
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: Congratulations RunRev!

2013-02-26 Thread John Allijn
Cool!!!
Congratulations to Runrev and to us all !
This will make the world a better place to code in :)






Sent from my iPad

On 26 feb. 2013, at 22:58, Geoff Canyon gcan...@gmail.com wrote:

 Kickstarter does this. Click the Backers link near the top of the page.
 
 gc
 
 Sent from my iPad
 
 On Feb 26, 2013, at 3:39 PM, Richmond richmondmathew...@gmail.com wrote:
 
 Will RunRev publish a list of donors? or is that meant to be confidential?
 
 ___
 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: OT iOS App Store Pricing

2012-11-28 Thread John Allijn
Hi Randy,
I do that often. 'Now' takes a bit of time to take effect. Maybe 15-30 minutes. 
I guess that this has to do with synchronisation of the app-store servers 
worldwide. (?)
However, it is quite fast and I never experienced problems with that. 
Regards
John



On Nov 29, 2012, at 0:13, Randy Hengst iowahen...@mac.com wrote:

 Hi All,
 
 I have several apps that I want to provide for free for a short time… 
 
 Has anyone changed pricing on iTunes Connect? 
 
 There's an option to make the effective time of the change now. I'm 
 wondering about how quickly the now option to set the change effective time 
 actually is.
 
 be well,
 randy hengst
 ___
 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

Skinning buttons

2012-10-03 Thread John Allijn
I've created a large number of buttons designed to look good on an iPad3. I 
created these buttons by scripts that combining images and icon fonts and 
saving these as snapshots. After that my script uses these snapshots to skin 
buttons. So far so good.

The problem that I now run into is that when I try to scale these buttons down 
for use on an iPhone, the images are cropped (clipped) and not resized. Is 
there a setting somewhere that can change this behaviour? In other words, if I 
select a button and drag the corner to resize it, I want the images of its skin 
to resize with it. 

Thanks!
John.
___
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: Skinning buttons

2012-10-03 Thread John Allijn
Ooh, that must be it!
Thanks Randy. 



On Oct 3, 2012, at 17:49, Randy Hengst iowahen...@mac.com wrote:

 As far as I know, LC does not copy the referenced art of a skinned button 
 when moving a button to a different stack… at least, it never has for me. 
 
 If you have the original stack still open when you paste the skinned button 
 into a new stack, you'll still see the skinned view in that new stack. But, 
 when you then open the new stack, by itself… you'll no longer see the art as 
 part of the skinned button. 
 
 I'd be happy to be corrected on this, because having it happen automatically 
 would be nice.
 
 be well,
 randy
 - 
 On Oct 3, 2012, at 10:11 AM, John Allijn wrote:
 
 Thanks John! I was afraid that it might be that.
 If I copy a skinned button to another stack, then I don't need to copy the 
 images. LC appearently does that for me. Where can I find those images?
 
 
 
 On Oct 3, 2012, at 16:57, John Craig j...@splash21.com wrote:
 
 Hi, John.  You have to resize the image object as well.  Quality = 'good' 
 or 'best' works for me - 'normal' is usually too rough.
 
 
 On 03/10/2012 15:42, John Allijn wrote:
 I've created a large number of buttons designed to look good on an iPad3. 
 I created these buttons by scripts that combining images and icon fonts 
 and saving these as snapshots. After that my script uses these snapshots 
 to skin buttons. So far so good.
 
 The problem that I now run into is that when I try to scale these buttons 
 down for use on an iPhone, the images are cropped (clipped) and not 
 resized. Is there a setting somewhere that can change this behaviour? In 
 other words, if I select a button and drag the corner to resize it, I want 
 the images of its skin to resize with it.
 
 Thanks!
 John.
 ___
 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
 
 ___
 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

___
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: Skinning buttons

2012-10-03 Thread John Allijn


 One other thought - you could use the image itself as a button, just code a
 mouseUp handler for it to deal what happens when someone clicks on it.
 Then you can just resize the image and you're done.
 
I tried to make this work for quite some time, but i don't get it to look nice 
and behave naturally, thats why i'm reverting back to a standard button. 
Skinning looks so easy when they show it in the livecode lessons, but designing 
a UI and making it work nicely takes up about 90% of my programming-time when 
building an iOS app. 
Who knew that design is difficult :)
___
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


Scripting gradients

2012-09-05 Thread John Allijn
Hi,
I have a rectangle that I filled with a gradient in the inspector. 
Is there a way to script the colors of this gradient?
I want to let the user pick a color for a color theme and have the gradient 
match that.
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: Scripting gradients

2012-09-05 Thread John Allijn
Thanks!



On Sep 5, 2012, at 11:00, Scott Rossi sc...@tactilemedia.com wrote:

 Sorry, make that:
 
 put theArray[ramp] into theVar   (no object reference needed)
 
 
 Recently, I wrote:
 
 Gradient settings are stored in an array property called the fillGradient.
 The color data is stored the ramp index.  So to get the colors, you could
 script something like:
 put the fillGradient of graphic myBox into theArray
 put theArray[ramp] of graphic myBox into theVar
 
 The variable theVar will contain each color of the gradient, listed one per
 line.
 
 After making changes to the colors, you load the color data back into the
 array, and set the fillGradient of the graphic to the array:
 put theVar into theArray[ramp]
 set the fillGradient of graphic myBox to theArray
 
 See the fillGradient entry in the dictionary for more info.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 Recently, John Allijn wrote:
 
 Hi,
 I have a rectangle that I filled with a gradient in the inspector.
 Is there a way to script the colors of this gradient?
 I want to let the user pick a color for a color theme and have the gradient
 match that.
 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
 
 
 
 
 
 
 ___
 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
 
 
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 ___
 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: Scripting gradients

2012-09-05 Thread John Allijn

I think i can get it working, but i'm strugling with the color-coding. 
My colors are all in a hex format like #FF. 
How do I convert that to RGB values? I can't find a command for this in the 
help. 


On Sep 5, 2012, at 11:00, Scott Rossi sc...@tactilemedia.com wrote:

 Sorry, make that:
 
 put theArray[ramp] into theVar   (no object reference needed)
 
 
 Recently, I wrote:
 
 Gradient settings are stored in an array property called the fillGradient.
 The color data is stored the ramp index.  So to get the colors, you could
 script something like:
 put the fillGradient of graphic myBox into theArray
 put theArray[ramp] of graphic myBox into theVar
 
 The variable theVar will contain each color of the gradient, listed one per
 line.
 
 After making changes to the colors, you load the color data back into the
 array, and set the fillGradient of the graphic to the array:
 put theVar into theArray[ramp]
 set the fillGradient of graphic myBox to theArray
 
 See the fillGradient entry in the dictionary for more info.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 Recently, John Allijn wrote:
 
 Hi,
 I have a rectangle that I filled with a gradient in the inspector.
 Is there a way to script the colors of this gradient?
 I want to let the user pick a color for a color theme and have the gradient
 match that.
 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
 
 
 
 
 
 
 ___
 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
 
 
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 ___
 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: Scripting gradients

2012-09-05 Thread John Allijn
It works! :)



On Sep 5, 2012, at 12:17, Guglielmo Braguglia guglie...@braguglia.ch wrote:

 John ... your values are already *RGB* values, just differently written ... 
 ;-)
 
 E.g.  ... *#FF7F00* is made by three couples of values : FF (/the R value/) 
 7F (/the G value/) 00 (/the B value/) just written in hexadecimal ... convert 
 to the decimal value and ... that's all.
 
 So  #FF7F00  is just 255, 127, 0 :-)
 
 Guglielmo
 
 
 On 05.09.2012 11:58, John Allijn wrote:
 I think i can get it working, but i'm strugling with the color-coding.
 My colors are all in a hex format like #FF.
 How do I convert that to RGB values? I can't find a command for this in the 
 help.
 
 
 On Sep 5, 2012, at 11:00, Scott Rossi sc...@tactilemedia.com wrote:
 
 Sorry, make that:
 
 put theArray[ramp] into theVar   (no object reference needed)
 
 
 Recently, I wrote:
 
 Gradient settings are stored in an array property called the fillGradient.
 The color data is stored the ramp index.  So to get the colors, you could
 script something like:
 put the fillGradient of graphic myBox into theArray
 put theArray[ramp] of graphic myBox into theVar
 
 The variable theVar will contain each color of the gradient, listed one per
 line.
 
 After making changes to the colors, you load the color data back into the
 array, and set the fillGradient of the graphic to the array:
 put theVar into theArray[ramp]
 set the fillGradient of graphic myBox to theArray
 
 See the fillGradient entry in the dictionary for more info.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 Recently, John Allijn wrote:
 
 Hi,
 I have a rectangle that I filled with a gradient in the inspector.
 Is there a way to script the colors of this gradient?
 I want to let the user pick a color for a color theme and have the 
 gradient
 match that.
 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
 
 
 
 
 
 ___
 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
 
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 ___
 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
 
 
 ___
 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: Preview of Resolution Independent Control library for RevMobile

2012-07-25 Thread John Allijn
Thanks Tom,
you are right of course. I watched the tutorial and the resize tool makes it 
very tempting to design one app for all devices, but I will be better of with 
building an ipad and a iphone app and change the layout upon change in the 
orientation. 



On Jul 25, 2012, at 3:26 PM, Thomas McGrath III wrote:

 Also, for some layouts when changing Orientation only the widths of controls 
 may need to change based on the LAYOUT but not the height or text size.
 
 Trying to find one solution for all of these scenarios is not going to 
 happen. Especially if you are using native controls (real or faked).
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 3mcgr...@comcast.net
 
 On Jul 25, 2012, at 9:11 AM, Thomas McGrath III wrote:
 If you are changing Orientation then only the LAYOUT/PLACEMENT should change 
 and not the size. The SIZE should have already been changed based on the 
 device resolution and the initial LAYOUT should have already been changed 
 based on the device size.
 
 
 ___
 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: LiveCode Meeting

2012-06-17 Thread John Allijn
Hallo Mark,
Groeten uit frankrijk :)
Succes met de meeting morgen. Ben benieuwd naar wat er uit komt. 
Groet,
John



On Jun 16, 2012, at 16:16, Mark Schonewille m.schonewi...@economy-x-talk.com 
wrote:

 Hi,
 
 Just a quick reminder. Tomorrow 17 June at 13:00, eHUG organises a meeting at 
 the King Arthur café, Oudegracht 101-103, Utrecht.
 
 Ter herinnering: morgen 17juni om 13:00u. organiseert eHUG een bijeenkomst. 
 Hieronder volgt nog even alle info op een rijtje.
 
 Wat: bijeenkomst omtrent LiveCode
 Waar: King Arthur, Oudegracht 101-103, Utrecht
 Google Maps: http://qery.us/28p
 Wanneer: zondag 17 juni 2012
 Tijd: van 13:00u. tot uiterlijk 17:00u.
 Consumpties: voor eigen rekening
 
 Voor vragen neem contact op met: eur...@ehug.info
 Meer info over LiveCode: http://www.runrev.com
 
 Nog geen lid van het Nederlandse LiveCode-forum? Registreer je op 
 http://www.runrev.info
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
 spaces. http://www.color-converter.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

___
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: Purchasing from an iOs App

2011-09-07 Thread John Allijn
My two cents:
The ebay app has buy now buttons and is highly succesfull
Regards,
John

On Sep 7, 2011, at 2:45, Chipp Walters ch...@chipp.com wrote:

 My guess is NO, this does not apply. Nope, wait, the wind just changed, YES
 it does apply, you cannot link in anyway to any website whatsoever. OOPS, my
 bad, the coin flipped again, the answer is now NO, go ahead and try. If the
 reviewer's name ends in 'ski' and the review day is Tuesday, chances are
 you'll get passed.
 
 Really, that's about as good a response as any you'll get right now.
 
 On Tue, Sep 6, 2011 at 8:03 AM, paolo mazza mazzapaoloit...@gmail.comwrote:
 
 Referring to  verse 11.13  of the holy App Store Review Guidellines
 (last edition) ,  Apps that link to external mechanisms for purchases
 or subscriptions to be used in the app, such as a “buy button that
 goes to a web site to purchase a digital book, will be rejected
 
 What about a buy button that goes to web site to purchase wine or cars  ?
 
 I mean, restrictions apply only to materials to be used in the app or
 to any kind of product?
 
 All the best
 
 Paolo
 
 ___
 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
 
 
 
 
 -- 
 Chipp Walters
 CEO, Shafer Walters Group, Inc.
 ___
 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] iOS and Android apps

2011-07-17 Thread John Allijn
Hi Mark,

Sure: you can access it here directly:
https://market.android.com/details?id=com.allijn.readfeature=search_result

Thanks for your interest! 
John.



Sent from my iPad

On Jul 17, 2011, at 5:14, Mark Stuart mfstu...@cox.net wrote:

 Hi John,
 
 I'd like to download your app to my Android phone, But after using the
 search word READ!, there were so many in the result list I gave up.
 
 Are there some key words that I can search for your app with?
 
 
 
 Regards,
 
 Mark Stuart
 
 ___
 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] iOS and Android apps

2011-07-17 Thread John Allijn
LOL
No comment :)

Send from my iPad

On Jul 17, 2011, at 14:01, John Craig j...@splash21.com wrote:

 Hey, John - Love the READ app -  I bet you were a teacher's nightmare at 
 school ;p
 
 
 On 16/07/2011 07:29, John Allijn wrote:
 Hi,
 
 Apple just approved two updates of my apps:
 
 READ is now universal (one executable for iPhone and iPad). It has also some 
 minor updates in the way it displays text.
 The app can be downloaded here:
 http://itunes.apple.com/us/app/read/id433493823?ls=1mt=8
 
 
 For the Dutch readers on the list: Dordrecht.HD is a city walk through 
 Hollands oldest city. I did some minor updates on the interface and 
 corrected quite a few typo's.
 http://itunes.apple.com/us/app/dordrecht.hd/id418542297?ls=1mt=8
 
 
 New for me is the release of READ for Android. Except for some minor 
 adjustments (the rounded corners of rectangles display differently on 
 android then on iOS) publication was easy.
 
 Here is a link to the app in the marketplace:
 https://market.android.com/details?id=com.allijn.readfeature=search_result
 
 regards,
 John
 ___
 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

___
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


[ANN] iOS and Android apps

2011-07-16 Thread John Allijn
Hi,

Apple just approved two updates of my apps:

READ is now universal (one executable for iPhone and iPad). It has also some 
minor updates in the way it displays text. 
The app can be downloaded here:
http://itunes.apple.com/us/app/read/id433493823?ls=1mt=8


For the Dutch readers on the list: Dordrecht.HD is a city walk through Hollands 
oldest city. I did some minor updates on the interface and corrected quite a 
few typo's.
http://itunes.apple.com/us/app/dordrecht.hd/id418542297?ls=1mt=8


New for me is the release of READ for Android. Except for some minor 
adjustments (the rounded corners of rectangles display differently on android 
then on iOS) publication was easy. 

Here is a link to the app in the marketplace:
https://market.android.com/details?id=com.allijn.readfeature=search_result

regards,
John
___
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: text formatting

2011-07-10 Thread John Allijn

Hi Peter, Ian,
I'm getting closer :)
Formatting works quite well this way. 
Thanks again,
John.


On Jul 10, 2011, at 6:16 PM, Peter Brigham MD wrote:

 You can create the htmltext by hand as suggested, or you can do something 
 like the following (not tested):
 
 -- script snippet
 local dvdr =   -- or whatever
 
 -- tEntry contains the template for an entry
 
 replace timestamp with tTime in tEntry
 replace firstName with tFirstName in tEntry
 replace lastName with tLastName in tEntry
 replace message with msgText in tEntry
 repeat while cr is char -1 of fld msgList
   delete char -1 of fld msgList
   -- make sure no empty lines in fld
 end repeat
 if line -1 of fld msgList  dvdr then
   put cr  dvdr after fld msgList
 end if
 put the number of lines of fld msgList into startLineNbr
 put cr  tEntry after fld msgList
 set the textFont of line startLineNbr+1 to -1 of fld msgList \
   to empty -- start with no formatting
 -- on timestamp
 set the textSize of line startLineNbr+1 of fld msgList to 8
 set the forecolor of line startLineNbr+1 of fld msgList \
   to gray
 -- firstName lastName: wrote:
 set the textStyle of word 1 to -2 of line startLineNbr+2 of \
   fld msgList to bold
 -- message
 set the textSize of line startLineNbr+3 to -1 of fld msgList \
   to 16
 set the forecolor of line startLineNbr+3 to -1 of fld msgList \
   to blue
 -- /script snippet
 
 HTH,
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 On Jul 9, 2011, at 12:53 AM, Ian McKnight wrote:
 
 Hi John
 
 I would look at the HTMLtext property in the Manual/Dictionary.
 
 You would take your text, line by line, and wrap each one with the
 appropriate HTML code
 eg
 put font color=grey size=1dateStamp/fontcr into myMsg
 put font color=black size=2bfirstNamesurName/b/fontcr after
 myMsg
 put font color=bluetheMessage/fontcr after myMsg
 set the HTMLText of fld myField to myMsg
 
 To get the size 16 point text you may have too set the default text size of
 the field to 16 - the HTML should vary it.
 To get the ruled line I think it will be necessary to produce a graphic line
 and use the img src tag to reference it.
 
 
 I haven't tried this so you may have to change the colour references to
 numeric values but this hopefully will put you on the correct track
 
 
 On 9 July 2011 08:22, John Allijn john.all...@alice.nl wrote:
 
 Hi,
 
 I have a textfield where I want to present a chunk of text, formatted in a
 few different styles.
 
 This is what the text looks like:
 
 ---
 On timestamp
 firstname Lastname wrote:
 message text
 ---
 
 and this is how I like to represent it:
 
 - the text on timestamp should be gray and 8 points
 - the firstname and lastname should be 10 points, black and bold
 - the message should be 16 points, blue, regular.
 - put in a divider-line
 
 The problem is that the message-text varies in length and that there may be
 multiple messages in the field. This means (but maybe I'm wrong) that I have
 to set the TextColor and TextSize properties while populating the field and
 that I cannot do this afterwards.
 
 So:
 - How can I set the style of the text, put some text in the field and
 change the style again?
 - how can I put in a horizontal line that separates the messages?
 
 thank you for your thoughts!
 John.
 ___
 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
 
 
 
 
 -- 
 Regards
 
 
 Ian McKnight
 
 iangmckni...@gmail.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
 
 
 ___
 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


text formatting

2011-07-09 Thread John Allijn
Hi,

I have a textfield where I want to present a chunk of text, formatted in a few 
different styles. 

This is what the text looks like:

---
On timestamp
firstname Lastname wrote:
message text
---

and this is how I like to represent it:

- the text on timestamp should be gray and 8 points
- the firstname and lastname should be 10 points, black and bold
- the message should be 16 points, blue, regular.
- put in a divider-line

The problem is that the message-text varies in length and that there may be 
multiple messages in the field. This means (but maybe I'm wrong) that I have to 
set the TextColor and TextSize properties while populating the field and that I 
cannot do this afterwards. 

So:
- How can I set the style of the text, put some text in the field and change 
the style again?
- how can I put in a horizontal line that separates the messages?

thank you for your thoughts!
John.
___
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: text formatting

2011-07-09 Thread John Allijn
Hu Ian,
Thanks, that may just do the trick!
Thanks,
John

Send from my iPad

On Jul 9, 2011, at 9:53, Ian McKnight iangmckni...@gmail.com wrote:

 Hi John
 
 I would look at the HTMLtext property in the Manual/Dictionary.
 
 You would take your text, line by line, and wrap each one with the
 appropriate HTML code
 eg
 put font color=grey size=1dateStamp/fontcr into myMsg
 put font color=black size=2bfirstNamesurName/b/fontcr after
 myMsg
 put font color=bluetheMessage/fontcr after myMsg
 set the HTMLText of fld myField to myMsg
 
 To get the size 16 point text you may have too set the default text size of
 the field to 16 - the HTML should vary it.
 To get the ruled line I think it will be necessary to produce a graphic line
 and use the img src tag to reference it.
 
 
 I haven't tried this so you may have to change the colour references to
 numeric values but this hopefully will put you on the correct track
 
 
 On 9 July 2011 08:22, John Allijn john.all...@alice.nl wrote:
 
 Hi,
 
 I have a textfield where I want to present a chunk of text, formatted in a
 few different styles.
 
 This is what the text looks like:
 
 ---
 On timestamp
 firstname Lastname wrote:
 message text
 ---
 
 and this is how I like to represent it:
 
 - the text on timestamp should be gray and 8 points
 - the firstname and lastname should be 10 points, black and bold
 - the message should be 16 points, blue, regular.
 - put in a divider-line
 
 The problem is that the message-text varies in length and that there may be
 multiple messages in the field. This means (but maybe I'm wrong) that I have
 to set the TextColor and TextSize properties while populating the field and
 that I cannot do this afterwards.
 
 So:
 - How can I set the style of the text, put some text in the field and
 change the style again?
 - how can I put in a horizontal line that separates the messages?
 
 thank you for your thoughts!
 John.
 ___
 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
 
 
 
 
 -- 
 Regards
 
 
 Ian McKnight
 
 iangmckni...@gmail.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

___
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


Check iOS communications

2011-05-09 Thread John Allijn
Hi,
Is there a way to check if bluetooth and wifi are switched on or off on iOS? Is 
so, is it possible to switch it on or off?

Best regards,
John. 
___
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: Check iOS communications

2011-05-09 Thread John Allijn
Too bad: I wanted the user to have an option to save battery-life and quickly 
turn those services on when needed...

Thanks!!!


On May 9, 2011, at 23:51, Gerry Orkin gerry.or...@gmail.com wrote:

 I don't think Apple allows apps to turn those services on or off. 
 
 Gerry
 
 -- Sent from my iPhone. 
 
 On 10/05/2011, at 7:18 AM, John Allijn john.all...@alice.nl wrote:
 
 Hi,
 Is there a way to check if bluetooth and wifi are switched on or off on iOS? 
 Is so, is it possible to switch it on or off?
 
 Best regards,
 John. 
 ___
 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

___
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


Scrolling in an iOS text-field

2011-04-30 Thread John Allijn
Hello,

I've been working on a tool for students and teacher that will help them to 
communicate better. In livecode I made a teachers-app and a Students-app for 
mac/win and iOS. 
The apps are free for all platforms, so take a look if you want: 
http://www.ons-prikbord.nl/Scholen/HES/Downloads.html
There is a demo-account available (see the faq's)


The iOS app works fine, but there are are still some tweaks to make. 

One that is particularly bugging me is scrolling in a text field. Can't seem to 
get this working. I downloaded the scroller example for iOS and replaced the 
images in the example with a text field. This has as a side-effect that I have 
to define the size of my textfield up front, and the user either has a very 
large empty field to scroll, or the contents is too big and not displayed 
entirely. 

Secondly, I can't seem to get the scroller to be displaced in the little part 
of my screen where I want it to be. It runs of the screen on the bottom, 
thereby messing up my navigation buttons, which are drawn on a image on the 
background of the window.

Has anyone figured out what the best way is to scroll in a text field on iOS???

best regards,
John Allijn


___
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: Scrolling in an iOS text-field

2011-04-30 Thread John Allijn
Great thanks!

Send from my iPhone

On Apr 30, 2011, at 10:39, Gerry gerry.or...@gmail.com wrote:

 John
 
 Here's a simple iOS scrolling text example:
 
 http://dl.dropbox.com/u/67170/examples/TextScrollerExample.livecode
 
 It's for iPhone Retina resolution screens - you will need to change some 
 stuff to make it work on older iPhone screens.
 
 I've commented the code but if you need further help just ask :)
 
 Gerry
 
 
 
 -- photos: http://gerryorkin.com
 On Saturday, 30 April 2011 at 5:39 PM, John Allijn wrote:
 
 Secondly, I can't seem to get the scroller to be displaced in the little 
 part of my screen where I want it to be. It runs of the screen on the 
 bottom, thereby messing up my navigation buttons, which are drawn on a image 
 on the background of the window.
 
 Has anyone figured out what the best way is to scroll in a text field on 
 iOS???
 ___
 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: Urban Airship in LC

2011-04-28 Thread John Allijn
Hi Tom,

I'm building an application for students and teachers that will enable them to 
send urgent messages like Teacher x is ill, No lessons tomorrow or the 
grades are available on the website.
I would like to add push-notifications to this service. Urban Airship looks 
very promising but frankly, It's a little out of my league. Could you perhaps 
get me started with some tips on where to start reading and conceptually how to 
set things up?

The Urban Airship documentation is quite comprehensive and contains xcode 
samples, but I do not know how to translate that into a working livecode app. 
Do you have any suggestions on where to start?

best regards,
John Allijn







On Mar 25, 2011, at 12:59 PM, Thomas McGrath III wrote:

 Thanks Peter,
 
 Looking into it now. Might just be the trick.
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 3mcgr...@comcast.net
 
 On Mar 25, 2011, at 1:03 AM, Peter W A Wood wrote:
 
 Tom
 
 I think that Mark Smith has the answer for you - 
 http://revonline2.runrev.com/stack/82/LibJson-1-0b
 
 Regards
 
 Peter
 
 On 25 Mar 2011, at 11:17, Thomas McGrath III wrote:
 
 Has anyone used Urban Airship yet in LC for Push Notification?
 
 Where do we stand on encode and decode for JSON? (U.A. says Every language 
 under the sun has libraries to encode and decode JSON.)
 
 This is fairly new to me but I am jumping in so any help is appreciated.
 
 From Urban Airship:
 JavaScript Object Notation is the simple serialization format used when 
 communicating with our API. Every language under the sun has libraries to 
 encode and decode JSON, and there are tools like JSONLint to help validate 
 that you’re sending data we can understand.
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 3mcgr...@comcast.net
 
 
 ___
 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
 
 
 ___
 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: an enhancement proposal for the language...

2011-04-26 Thread John Allijn
How about:

Please 
  Get MillionsOfDollars from IPhoneApp
  Put MillionsOfDollars into Retirement, charity

Oh no
   Taxes

End please 



Have fun at the conference!
Regards,
John Allijn



Send from my iPad

On Apr 26, 2011, at 12:31, Andre Garzia an...@andregarzia.com wrote:

 let me fix that for you:
 
 ...please
  get some sleep Andre
 
 ...oh no
  haven't finished my presentation
 ...end please
 
 On Tue, Apr 26, 2011 at 3:15 AM, Keith Clarke 
 keith.cla...@clarkeandclarke.co.uk wrote:
 
 ...please
   get some sleep Andre
 ...end please
 
 ;-)
 
 On 26 Apr 2011, at 11:02, Andre Garzia wrote:
 
 Hey Folks,
 
 It is about 3:00 AM here and I am coding my presentation and while I was
 struggling with the engine to get some stuff working I came to a
 realization
 that was something short of an enlightenment moment for me. After
 thinking
 for a while, I decided to submit this to this list for comments and
 approval
 and then we can go forward with an enhancement request in the QA.
 
 It is about syntax and encouraging the engine to be extraordinary.
 Sometimes
 when you are not sure things will work as expected, you use a block like:
 
 try
  ...
  ...
  ...
 end try
 
 I thought about it for a while and remembered master yoda saying: do or
 do
 not, try not and realized that if tell the engine to try out something,
 you're already telling him, hey this stuff might explode, try
 something...
 The engine upon receiving a try request obviously enters a pessimistic
 mood
 thinking about all the things that can go wrong and often dies a horrible
 death. To avoid such cases and help the engine to fell encouraged to do
 his
 best, I decided to revise that syntax. I propose the following:
 
 please
  ...
  ...
  ...
 end please
 
 maybe if we asked nicely, the engine will give its best shot at executing
 the commands inside the block. People often give their best when asked
 politely. It is a proven studies by the Andre Garzia School of Late
 Night
 Caffeine that asking pretty please at something is better than asking
 try.
 
 If we decide to go forware with the transition to a more uplift engine,
 we'll also need to revise things like
 
 try
  ...
  ...
  ...
 catch
  ...
 end try
 
 
 After all what does catch means (my guess is the engine shouting 'catch
 that running exception' with a cop voice). Catch will not work with
 please... so I think we should do:
 
 please
  ...
  ...
  ...
 oh no
  ...
  ...
 end please
 
 oh no is better than catch and quickly summarizes the state of mind
 that a
 developer should be if he ever faces that specific part of the code.
 
 With these additions, I believe we'll have a happier engine and better
 development experience.
 
 Cheers
 andre
 --
 http://www.andregarzia.com All We Do Is Code.
 ___
 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
 
 
 
 
 -- 
 http://www.andregarzia.com All We Do Is Code.
 ___
 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


Substack Confusion

2011-04-14 Thread John Allijn
Hello,

I'm having some trouble with a substack. I created a mainstack (used as 
splash-screen) and a substack containing data. (mac+win deployment)

After some trial and error I got this working, but I made the 'mistake' of 
trying to update some of the code in the substack. These changes work when I 
open my substack in livecode directly, but the previous version of my substack 
is being launched after a go to stack data_stack from within the mainstack. 

I deleted the link of the stack in the Standalone-preferences and added it 
again, but now I can't jump to the substack all together.

What is the correct way to use a mainstack/substack combination and what is the 
best way to update either one of them if needed?

thanks!!
John
___
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: 4.6 released

2011-03-23 Thread John Allijn
Hi Bob,

I have the same that Andrew mentiones: bought livecode in december and I am now 
confronted with three updates (livecode, mac deployment, iOS deployment)
I did login to my useraccount, but the update is indeed a paid one. 
Best regards,
John

Send from my iPhone

On Mar 23, 2011, at 17:31, Bob Sneidar b...@twft.com wrote:

 That's odd. You should have a 1 year upgrade at least. Better contact 
 support. BTW did you log in with your runrev account credentials before 
 trying to download it?
 
 Bob
 
 
 On Mar 23, 2011, at 9:25 AM, Andrew Kluthe wrote:
 
 After reading the email I got from runrev, I went to go download and they
 asked for some upgrade fees. Pfft. I just bought 4.5 in Jan. Try soliciting
 me again when 5.0 comes out with something fresh.
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/4-6-released-tp3397103p3399912.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
 
 
 ___
 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: Swipe-able objects in iOS

2011-02-27 Thread John Allijn
I was wondering the same with draging inside lists. The scrollable lists on the 
iphone bounce when you reach the end. Is one of those 'zillion' new language 
elements usable for such swipe/scroll and bounce movement within a text field?




Sent from my iPad

On Feb 27, 2011, at 23:08, Gerry gerry.or...@gmail.com wrote:

 Oh. I've found the dragImage stuff. So I can drag just an image,
 then move the object to the mouseup/drop location?
 
 g
 
 On Mon, Feb 28, 2011 at 9:05 AM, Gerry gerry.or...@gmail.com wrote:
 I'm new to LiveCode but I was a very active HyperCard and Director
 programmer back when I was young and crazy. Now, 3 careers later, I'm
 taking this stuff up again, as a hobby.
 
 In HyperCard I used to use the on mousestilldown message to make
 objects draggable. LiveCode has a zillion new language elements, so
 before I go old school is there now a better way? This is for
 something that'll end up in iOS.
 
 Cheers
 
 Gerry
 
 
 
 
 -- 
 photos: http://gerryorkin.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

___
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


save data on cards in standalone app

2011-02-19 Thread John Allijn
Hi,

I created a stack, just the way I used to do it in hypercard. Basic cards with 
a next and a prev button and a few text-fields to enter text into. 
All looks nice and I can tunr it into a mac/win application. Entering text in 
the standalone also works great, but when I exit the application and open it 
again, all fields are empty.

I guess I'm forgetting something (?) can anyone tell me how to save the data I 
entered on the card? (tried to search on the forum, but that is down because of 
maintanance...)

thanks and regards,
John
___
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: save data on cards in standalone app

2011-02-19 Thread John Allijn
Thanks for all the great answers. 
I think I understand but still have some reading and experimenting to do :)


Send from my iPhone

On Feb 19, 2011, at 19:41, Peter Haworth p...@mollysrevenge.com wrote:

 
 
 On Feb 19, 2011, at 9:58 AM, Richard Gaskin wrote:
 
 This may seem like a curmudgeonly distinction, but we see this often enough 
 that it's a source of confusion:
 
 I don't think it's curmudgeonly at all Richard!  
 
 Having been bitten by this myself, I will admit that it's a pet peeve of mine 
 that this while issue of the inability to save data in a standalone isn't 
 emphasised a hell of a lot more in the LC documentation.  As you point out, 
 this isn't an LC restriction, it's an OS restriction but the process of 
 developing an app in the IDE doesn't reflect that since you can happily have 
 your data saved by the IDE and there's no clue that you shouldn't expect that 
 to be the case when you build a standalone, except for a couple of sentences 
 buried somewhere in the 400 or so pages of the User Guide.  And the whole 
 issue is made more confusing by the mainstack/substack terminology in this 
 context.
 
 Experienced LC users know all this of course but this issue crops up time and 
 time again on this list and on the forum from people who are trying their 
 best to decipher the LC documentation, think they have it down only to be hit 
 with this when they build their first standalone and possibly cost them hours 
 of work figuring out how to deal with it.  At least that was my experience.
 
 Now that's curmudgeonly!
 
 
 Pete Haworth
 
 ___
 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


Push notifications

2011-02-03 Thread John Allijn
Hi,

Is there a way to send/handle push notifications in LiveCode for iOS?

Regards,
John Allijn


___
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: Push notifications

2011-02-03 Thread John Allijn
:)



On Feb 3, 2011, at 15:47, Mike Kerner mikeker...@roadrunner.com wrote:

 Not yet, but I keep asking...
 ___
 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: Connecting to a MySQL database at a hosting provider

2011-01-09 Thread John Allijn
Hi Bjornke,

Thanks for your reply: Last few day i've been trying to get this work, but it's 
more of a web-development problem than a runrev one. 

I still can't get it to work, because I don't know how to setup my server-side. 
Still working on that one :(

Is there an example template for this that I could adapt? Or an easy tutorial? 
The problem is that when you start googling there is so much info that it is 
quite overwhelming..

thanks again!
john.




On Jan 7, 2011, at 6:58 PM, Björnke von Gierke wrote:

 normally you'd create a php (or other scripted server side language) 
 interface that queries the sql backend, or makes updates to it. But instead 
 of outputting formatted html, you simply output machine parse-able content, 
 like a tab delimited list, or xml. Then you can access the data, just as you 
 would if you'd go directly into the mysql, but via an url that queries your 
 scripted output:
 
 put url 
 http://yourServer.fake/showUser.php?user=blahpassword=plainTextIsNotSecure;
 
 On 7 Jan 2011, at 18:50, John Allijn wrote:
 
 Hi,
 
 I' writing an iPad app. I want the app to get some shared data from a MySQL 
 database. I've seen scripts for that and locally they all work great. 
 However, I've got three websites, each with a different hosting provider, 
 and they all have installed MySQL in such a way that you can only access the 
 database from  within a webpage running at the hosting provider. For example 
 with a PHP script.
 
 I guess I'n not the first one who wants to pull data from a DB on the web :) 
 
 Is there a way around that? like a special PHP script, or another kind of 
 generally used interface that works as a server-side to my client-app?
 
 The database itself is quite easy. just first/last name, email, a line of 
 free format text and a date. I want to test if the user exists (is in the 
 database), has paid his subscription (the date is an expiration date), and a 
 system message specifically for that user (the free text field)
 
 any suggestions
 
 best regards,
 John.
 ___
 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
 
 
 
 -- 
 
 official ChatRev page:
 http://bjoernke.com?target=chatrev
 
 Chat with other RunRev developers:
 go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev;
 
 
 ___
 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