Re: livecode 8 system tray / osx menu bar support

2016-06-15 Thread Maarten Koopmans
Done.
http://quality.livecode.com/show_bug.cgi?id=17848


Op zondag 12 juni 2016 heeft Monte Goulding <mo...@appisle.net> het
volgende geschreven:

> Thanks Maarten. Could you report on quality.livecode.com
>
> Sent from my iPhone
>
> > On 12 Jun 2016, at 1:00 AM, Maarten Koopmans <maarten.koopm...@gmail.com
> <javascript:;>> wrote:
> >
> > Report where? I am happy to do so.
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <javascript:;>
> 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 8 system tray / osx menu bar support

2016-06-11 Thread Maarten Koopmans
Report where? I am happy to do so.

Op zaterdag 11 juni 2016 heeft Monte Goulding <mo...@appisle.net> het
volgende geschreven:

> Maarten could you report this. I believe the LC updater uses both of these
> so I'd say it's no longer experimental.
>
> The menu bar widget on Mac is not supported. It would be a helpful feature
> to have I think.
>
> Cheers
>
> Monte
>
> Sent from my iPhone
>
> > On 11 Jun 2016, at 11:00 PM, Maarten Koopmans <
> maarten.koopm...@gmail.com <javascript:;>> wrote:
> >
> > See subject - can I put a Livecode app in the menu bar or system tray.
> From
> > 4.5 onwards there was this hidden feature. I haven't tried, but I'd
> > expected it to be in the docs if it were
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <javascript:;>
> 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


livecode 8 system tray / osx menu bar support

2016-06-11 Thread Maarten Koopmans
Hi,

See subject - can I put a Livecode app in the menu bar or system tray. From
4.5 onwards there was this hidden feature. I haven't tried, but I'd
expected it to be in the docs if it were.

SEE http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf
 and search for system tray.

If anyone knows how to do this or has an insight or example to offer, that
would be highly appreciated.

Thanks,

Maarten
___
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


Code signing Mac app store

2015-05-21 Thread Maarten Koopmans
Hi,

I've been out of the Livecode loop for a while and am just wondering:
what's the guide/tool people use these days when they publish an
application for the Mac or Mac App store?

Thanks!

--Maarten
___
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/LC5.2.2 UIWebView?

2012-09-18 Thread Maarten Koopmans
I used and deployed to the App store with 5.5.1 and UIWebView (via
Mobgui). So it did work...

On Tue, Sep 18, 2012 at 4:37 AM, Charles E Buchwald char...@buchwald.ca wrote:
 Hi Rick,
 I just completed an iPad project using scroller controls and a player 
 control. I experimented a bit with the browser control without much luck... I 
 assumed I was missing some important parameter.
 Are you using the mobileControl... variations or the mostly decremented 
 iphoneControl... stuff?
 Are you testing your stacks in the simulator?
 Or can you post some of your code here? I know I had a couple of misspellings 
 that hung me up for a while
 Cheers,
 - Charles

 On 2012-09-17, at 3:50 PM, Rick Harrison harri...@all-auctions.com wrote:

 Hi there,

 Has anyone gotten iOS UIWebView under LC 5.5.2 to work?

 I've been through the archives and tried the lesson example
 and even the lesson example doesn't work!

 Suggestions?

 Thanks,

 Rick



 --
 Charles E. Buchwald
 http://buchwald.ca
 Vancouver / Mexico City / NYC
 Member of the 02 Global Network for Sustainable Design • Connect on LinkedIn 
 • Follow me on Twitter

 ___
 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


ZD article on hypercard as well

2012-08-13 Thread Maarten Koopmans
http://www.zdnet.com/could-the-ios-app-be-the-21st-century-hypercard-stack-702508/

I see a marketing opportunity, especially with Colin's book out as
well (nice one Colin!)

--Maarten

___
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


[Thanks!] Re: [ANN] Livecode iCloud iOS external

2012-08-07 Thread Maarten Koopmans
A big thank you to my current supporters/customers. Here's to a lively
externals market!

--Maarten

On Monday, August 6, 2012, Maarten Koopmans wrote:

 LOL. I want forced spellchecking *in my fingers*...

 On Mon, Aug 6, 2012 at 9:26 PM, Peter M. Brigham 
 pmb...@gmail.comjavascript:;
 wrote:
  On Aug 6, 2012, at 1:20 PM, Maarten Koopmans wrote:
 
  ...my soellchecker turns out to be broken….
 
  Apparently.:-)
 
  -- Peter
 
  Peter M. Brigham
  pmb...@gmail.com javascript:;
  http://home.comcast.net/~pmbrig
 
 
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com javascript:;
  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] Livecode iCloud iOS external

2012-08-06 Thread Maarten Koopmans
Thanks!

 I just learnt that the PDF has a ton of spelling errors. Non-native
and my soellchecker turns out to be broken.

I'll update the manual soonish. So it'll be a collectors item ;-)

--Maarten

On Sunday, August 5, 2012, Monte Goulding wrote:

 Well done Maarten!

 --
 M E R Goulding
 Software development services

 mergExt - There's an external for that!

 On 05/08/2012, at 11:39 PM, Maarten Koopmans 
 maarten.koopm...@gmail.comjavascript:;
 wrote:

  Hi,
 
  After a weekend of documenting I'm happy to announce the immediate
  availability of miCloud - an iCloud external for iOS.
 
  With it, you can:
 
  - get your app name, team prefix, bundle identifier
  - put files in your app's container
  - manipulate and query the apps container
  - put files in a shared container across apps - so you have shared
  data across iOS apps
  - manipulate and query the shared container
  - put files in a container or shared container up for download for two
 weeks
 
  Read more: http://maartenkoopmans.com/miCloudManual.pdf
 
  Introductory price until August 19 is only $49.
 
  You can get it at http://maartenkoopmans.com/micloud
 
  Enjoy,
 
  Maarten
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com javascript:;
  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 javascript:;
 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] Livecode iCloud iOS external

2012-08-06 Thread Maarten Koopmans
..updated.

On Mon, Aug 6, 2012 at 7:20 PM, Maarten Koopmans
maarten.koopm...@gmail.com wrote:
 Thanks!

  I just learnt that the PDF has a ton of spelling errors. Non-native and
 my soellchecker turns out to be broken.

 I'll update the manual soonish. So it'll be a collectors item ;-)

 --Maarten

 On Sunday, August 5, 2012, Monte Goulding wrote:

 Well done Maarten!

 --
 M E R Goulding
 Software development services

 mergExt - There's an external for that!

 On 05/08/2012, at 11:39 PM, Maarten Koopmans maarten.koopm...@gmail.com
 wrote:

  Hi,
 
  After a weekend of documenting I'm happy to announce the immediate
  availability of miCloud - an iCloud external for iOS.
 
  With it, you can:
 
  - get your app name, team prefix, bundle identifier
  - put files in your app's container
  - manipulate and query the apps container
  - put files in a shared container across apps - so you have shared
  data across iOS apps
  - manipulate and query the shared container
  - put files in a container or shared container up for download for two
  weeks
 
  Read more: http://maartenkoopmans.com/miCloudManual.pdf
 
  Introductory price until August 19 is only $49.
 
  You can get it at http://maartenkoopmans.com/micloud
 
  Enjoy,
 
  Maarten
 
  ___
  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: [ANN] Livecode iCloud iOS external

2012-08-06 Thread Maarten Koopmans
LOL. I want forced spellchecking *in my fingers*...

On Mon, Aug 6, 2012 at 9:26 PM, Peter M. Brigham pmb...@gmail.com wrote:
 On Aug 6, 2012, at 1:20 PM, Maarten Koopmans wrote:

 ...my soellchecker turns out to be broken….

 Apparently.:-)

 -- Peter

 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig



 ___
 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] Livecode iCloud iOS external

2012-08-05 Thread Maarten Koopmans
Hi,

After a weekend of documenting I'm happy to announce the immediate
availability of miCloud - an iCloud external for iOS.

With it, you can:

- get your app name, team prefix, bundle identifier
- put files in your app's container
- manipulate and query the apps container
- put files in a shared container across apps - so you have shared
data across iOS apps
- manipulate and query the shared container
- put files in a container or shared container up for download for two weeks

Read more: http://maartenkoopmans.com/miCloudManual.pdf

Introductory price until August 19 is only $49.

You can get it at http://maartenkoopmans.com/micloud

Enjoy,

Maarten

___
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


iCloud external :-)

2012-08-03 Thread Maarten Koopmans
Folks,

I have spent a lot of time on it over the last two months, but I
finally have an iOS iCloud external working. One of the things I've
learned is that iCloud works (by itself), but it is very easy to make
a mistake - hence the apps that behave so badly with iCloud.

Anyway, the external can:

- give back your app name, team prefix, bundle identifier
- put files in your app's container
- manipulate and query the apps container (evict files, force
download, modification dates, list files...)
- put files in a shared container across apps - so you have shared
data across iOS apps [ yes ... that's right!!!]
- manipulate and query the shared container
- put files in a container or shared container up for download for two
weeks [ yes, you read this correctly as well]

I can do two things:
1) continue with my main project as I will eventually
2) spend even more time and put the external up for sale for $49

As this really has been a LOT of work I don't want to put something up
for sale if nobody is interested, so consider this a poll. Personally,
I find the shared storage across apps and public data publishing is
pretty awesome.

Let me know if you're interested - otherwise I'll simply enjoy my weekend ;-)

--Maarten

___
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: iCloud external :-)

2012-08-03 Thread Maarten Koopmans
Hi Willem,

Screenshots with iCLoud are next-to-near impossible, but here's some
code from handlers in my demo/test stack.

First, getting some basic information:

on mouseUp
   answer Trying to fetch basic app/team info, and so some setup
   put setupUbiquityDocumentsFolder() into tSetup
   answer Setting up ubiquity document url succeeded:   tSetup
   put getApplicationIdentifier() into tAppID
   answer App ID:   tAppID
   put getAppName() into tAppName
   answer App Name:   tAppName
   put getTeamPrefix() into tTeamPrefix
   answer Team prefix:   tTeamPrefix
   answer Containerized name:   containerize(my.com.SharedStorage)
end mouseUp

Next, publishing a file publicly via iCloud:

on mouseUp
   answer In as public file handler
   set the defaultFolder to specialFolderPath(documents)
   answer default folder set
   put HelloCloudPublic.txt into tLocalFilePath
   open file tLocalFilePath for write
   write Hello iCloud! to file tLocalFilePath
   close file tLocalFilePath
   answer tLocalFilePath
   --Note that here we effectively use the FULL path... Different from
setUbiquitous
   put asPublicCloudFile(tLocalFilePath) into tSharedURL
   answer Your public iCloud URL for the next two weeks is:   tSharedURL
   revMail y...@who.net,,miCloud link,tSharedURL
end mouseUp

And the killer - publishing a file in a shared storage container
(shared with other apps):

on mouseUp
   answer In make ubiquitous (1) handler
   set the defaultFolder to specialFolderPath(documents)
   get setupUbiquityDocumentsFolder()
   answer default folder set, setup succeeded =   it
   put HelloCloudUbiqOrLocal.txt into tLocalFilePath
   answer Local file url:   getLocalFileURL(tLocalFilePath)
   open file tLocalFilePath for write
   write Hello iCloud! to file tLocalFilePath
   close file tLocalFilePath
   --This is needed because our routines magically create the correct file path.
   --Whereas LC on opening the file puts the full path into tLocalFilePath
   put HelloCloudUbiqOrLocal.txt into tLocalFilePath
   --Check, check, double check
   answer tLocalFilePath
   --test and show that the file is local
   answer File is local:isLocal(tLocalFilePath)
   -- get its file url
   put getFileURL(tLocalFilepath) into tFileURL
   answer Local file URL =   tFileURL
   --make the file ubiquitous, 1= true, rest = false
   get setUbiquitousForFile(1,tLocalFilePath)
   answer Set ubiquitous, done
   --test to see if it is local or ubiquitous (really, the result
coming back from iCloud in setUbiquitous is less trustworthy)--test to
see if it is local
   answer File is local:isLocal(tLocalFilePath)
   --test to see if it is ubiquitous
   answer File is ubquitous:isUbiquitousDocument(tLocalFilePath)
   --get the file url, again (should be ubiquitous now...)
   put getFIleURL(tLocalFilepath) into tFileURL
   answer Now... Ubiquitous file URL =   tFileURL
   --get the modification date
   answer modification data =   getModificationDateForURL(tFileURL)
   --list the documents container contents
   answer getContentsOfUbiquityDocumentsFolder()
   --delete the ubiquitous document instance
   get setUbiquitousForFileInContainer(0,tLocalFilePath,tContainer)
   answer Remove ubiquitous, done
   --at this point the file is only local...
end mouseUp

Doe this wet your appetite(s)?

Cheers,

Maarten

On Fri, Aug 3, 2012 at 2:31 PM, William de Smet williamdes...@gmail.com wrote:
 Hi Maarten,

 I am very much interested in this Cloud external.
 Do you have any information and screenshots online already?

 groeten,

 William


 2012/8/3 Maarten Koopmans maarten.koopm...@gmail.com:
 Folks,

 I have spent a lot of time on it over the last two months, but I
 finally have an iOS iCloud external working. One of the things I've
 learned is that iCloud works (by itself), but it is very easy to make
 a mistake - hence the apps that behave so badly with iCloud.

 Anyway, the external can:

 - give back your app name, team prefix, bundle identifier
 - put files in your app's container
 - manipulate and query the apps container (evict files, force
 download, modification dates, list files...)
 - put files in a shared container across apps - so you have shared
 data across iOS apps [ yes ... that's right!!!]
 - manipulate and query the shared container
 - put files in a container or shared container up for download for two
 weeks [ yes, you read this correctly as well]

 I can do two things:
 1) continue with my main project as I will eventually
 2) spend even more time and put the external up for sale for $49

 As this really has been a LOT of work I don't want to put something up
 for sale if nobody is interested, so consider this a poll. Personally,
 I find the shared storage across apps and public data publishing is
 pretty awesome.

 Let me know if you're interested - otherwise I'll simply enjoy my weekend ;-)

 --Maarten

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit

Re: iCloud external :-)

2012-08-03 Thread Maarten Koopmans
Hi Willem,

Files from iCLoud are downloaded automagically. You just list the
contents of the ubiquitous container, look at the dates or names and
open whatever you want. That's the beauty of it: you just put the data
there, and it automatically updates all devices.

Of course, beware of versioning conflicts. But this is where Livecode
(with its excellent text processing) excels.

--Maarten

On Fri, Aug 3, 2012 at 3:31 PM, William de Smet williamdes...@gmail.com wrote:
 Hi Maarten,

 This seem pretty straight forward.
 I reckon you can get a file from iCloud as well?

 groeten,

 William


 2012/8/3 Maarten Koopmans maarten.koopm...@gmail.com:
 Hi Willem,

 Screenshots with iCLoud are next-to-near impossible, but here's some
 code from handlers in my demo/test stack.

 First, getting some basic information:

 on mouseUp
answer Trying to fetch basic app/team info, and so some setup
put setupUbiquityDocumentsFolder() into tSetup
answer Setting up ubiquity document url succeeded:   tSetup
put getApplicationIdentifier() into tAppID
answer App ID:   tAppID
put getAppName() into tAppName
answer App Name:   tAppName
put getTeamPrefix() into tTeamPrefix
answer Team prefix:   tTeamPrefix
answer Containerized name:   containerize(my.com.SharedStorage)
 end mouseUp

 Next, publishing a file publicly via iCloud:

 on mouseUp
answer In as public file handler
set the defaultFolder to specialFolderPath(documents)
answer default folder set
put HelloCloudPublic.txt into tLocalFilePath
open file tLocalFilePath for write
write Hello iCloud! to file tLocalFilePath
close file tLocalFilePath
answer tLocalFilePath
--Note that here we effectively use the FULL path... Different from
 setUbiquitous
put asPublicCloudFile(tLocalFilePath) into tSharedURL
answer Your public iCloud URL for the next two weeks is:   tSharedURL
revMail y...@who.net,,miCloud link,tSharedURL
 end mouseUp

 And the killer - publishing a file in a shared storage container
 (shared with other apps):

 on mouseUp
answer In make ubiquitous (1) handler
set the defaultFolder to specialFolderPath(documents)
get setupUbiquityDocumentsFolder()
answer default folder set, setup succeeded =   it
put HelloCloudUbiqOrLocal.txt into tLocalFilePath
answer Local file url:   getLocalFileURL(tLocalFilePath)
open file tLocalFilePath for write
write Hello iCloud! to file tLocalFilePath
close file tLocalFilePath
--This is needed because our routines magically create the correct file 
 path.
--Whereas LC on opening the file puts the full path into 
 tLocalFilePath
put HelloCloudUbiqOrLocal.txt into tLocalFilePath
--Check, check, double check
answer tLocalFilePath
--test and show that the file is local
answer File is local:isLocal(tLocalFilePath)
-- get its file url
put getFileURL(tLocalFilepath) into tFileURL
answer Local file URL =   tFileURL
--make the file ubiquitous, 1= true, rest = false
get setUbiquitousForFile(1,tLocalFilePath)
answer Set ubiquitous, done
--test to see if it is local or ubiquitous (really, the result
 coming back from iCloud in setUbiquitous is less trustworthy)--test to
 see if it is local
answer File is local:isLocal(tLocalFilePath)
--test to see if it is ubiquitous
answer File is ubquitous:isUbiquitousDocument(tLocalFilePath)
--get the file url, again (should be ubiquitous now...)
put getFIleURL(tLocalFilepath) into tFileURL
answer Now... Ubiquitous file URL =   tFileURL
--get the modification date
answer modification data =   getModificationDateForURL(tFileURL)
--list the documents container contents
answer getContentsOfUbiquityDocumentsFolder()
--delete the ubiquitous document instance
get setUbiquitousForFileInContainer(0,tLocalFilePath,tContainer)
answer Remove ubiquitous, done
--at this point the file is only local...
 end mouseUp

 Doe this wet your appetite(s)?

 Cheers,

 Maarten

 On Fri, Aug 3, 2012 at 2:31 PM, William de Smet williamdes...@gmail.com 
 wrote:
 Hi Maarten,

 I am very much interested in this Cloud external.
 Do you have any information and screenshots online already?

 groeten,

 William


 2012/8/3 Maarten Koopmans maarten.koopm...@gmail.com:
 Folks,

 I have spent a lot of time on it over the last two months, but I
 finally have an iOS iCloud external working. One of the things I've
 learned is that iCloud works (by itself), but it is very easy to make
 a mistake - hence the apps that behave so badly with iCloud.

 Anyway, the external can:

 - give back your app name, team prefix, bundle identifier
 - put files in your app's container
 - manipulate and query the apps container (evict files, force
 download, modification dates, list files...)
 - put files in a shared container across apps - so you have shared
 data across iOS apps [ yes ... that's right!!!]
 - manipulate

Re: revCopyFile

2012-03-22 Thread Maarten Koopmans
I scripted this using the read as binary etc. using 16KB buffers some time
ago in pure LC. Much faster, and cross-platform.  Idon'thave the code here
at hand, but it is really straightforward:

Open the source file for read binary
Open the destination file for write binary
Read 16KB or whatever is left if it's less from the source into a buffer
Append the buffer to the destination
Loop until done
Close the files

Faster then revCopyFile (in fact, why doesn't itdo it this way) and no
hassle with shells or external processes where you need to check if they
actually did what you asked.

HTH, Maarten

On Thursday, March 22, 2012, Pete p...@mollysrevenge.com wrote:
 Hi Geoff,
 Thanks for the speed test info.  I'm not very familiar with shell commands
 so maybe you could let me know the command to use? What I need to do is
 copy a file to a different folder with a different file name.

 The lack of a progress bar might be a problem, but if the speed
differences
 are as much as you found, there may not be a need for a progress bar at
all.

 Also, I assume the shell commands would be different on Windows and Mac.
  That's an inconvenience because it means extra coding, but not a show
 stopper.

 Thanks,
 Pete

 On Wed, Mar 21, 2012 at 11:25 PM, Geoff Canyon gcan...@gmail.com wrote:

 The advantages derive from the fact that LiveCode isn't doing the actual
 copying with revCopyFile -- the Finder is. For completeness, the same
 advantage applies to using a shell command. You don't get a progress
dialog
 though.

 Okay, I just did a quick one-off test with interface sounds off. For
thirty
 files that were each about 70kb, using a shell command was about 3x
faster
 than using revCopyFile. That's without taking advantage of the ability to
 move and rename in one step with a shell command. If that's what you're
 doing, the advantage would be even greater.

 On Wed, Mar 21, 2012 at 3:04 PM, Pete p...@mollysrevenge.com wrote:

  Thanks all for the input.  Sounds like Stephen's approach is the only
way
  to get rid of it.  Seems like that setting will apply to other sounds
as
  well, but I'm OK with that.
 
  As far as using AppleScript, I'm using revCopyFile because the
dictionary
  claims there are certain advantages to using it over put URL or any
  other method, amongst which is that it does not require reading the
file
  into memory, and since some of these files could be pretty large,
that's
  significant.  On a Mac, it also displays a progress bar which I don;t
 think
  would be possible if I used put URL.
 
  Pete
 
  On Wed, Mar 21, 2012 at 11:35 AM, Geoff Canyon gcan...@gmail.com
 wrote:
 
   I went straight to the shell command, so I don't know for sure, but
 this
   sounds reasonable. There's also the overhead of spinning up
AppleScript
  in
   the first place. If Apple is doing that badly, that might also cause
   problems I suppose.
  
   On Wed, Mar 21, 2012 at 1:24 PM, stephen barncard 
   stephenrevoluti...@barncard.com wrote:
  
That was probably a big reason why multiple file transfers would
take
   more
time - loading and unloading the sound - and perhaps the reason why
 it
failed after memory was exceeded.
   
   ___
   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
  
  
 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




 --
 Pete
 Molly's Revenge http://www.mollysrevenge.com
 ___
 use-liv
___
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: Base64 weirdness

2011-11-01 Thread Maarten Koopmans
Relacing crlf in lc and using adifferet scala lib on the other end solved
this. Thanks for all of your help.

On Monday, October 31, 2011, Maarten Koopmans maarten.koopm...@gmail.com
wrote:
 Still struggling, I'll try,

 @Mark: I'm on a mac

 On Saturday, October 29, 2011, Richard Gaskin ambassa...@fourthworld.com
wrote:
 Maarten Koopmans wrote:

 You're right, but i've found that other languages don't ignore them,
 whether they are c-based string wrapped scripting languages or compile
to
 the JVM for instance.

 I think LC follows the RFC better, but not necessarily better
interoprable.
 Anuway, another recent thread turned out to have a solution - copy 72
 chars, skip 1, loop

 Since white space is independent of data in base64, would this serve the
same purpose?:

  replace crlf with cr in tBase64Data


 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

 ___
 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: Base64 weirdness

2011-10-31 Thread Maarten Koopmans
There was a thread on that, that seems to do the trick...

https://mail.google.com/mail/?shva=1#search/label%3Ause-lc+base64/13250dfc8da329ef

On Sat, Oct 29, 2011 at 6:55 PM, Maarten Koopmans
maarten.koopm...@gmail.com wrote:


 On Saturday, October 29, 2011, Richard Gaskin ambassa...@fourthworld.com
 wrote:
 Maarten Koopmans wrote:

 You're right, but i've found that other languages don't ignore them,
 whether they are c-based string wrapped scripting languages or compile to
 the JVM for instance.

 I think LC follows the RFC better, but not necessarily better
 interoprable.
 Anuway, another recent thread turned out to have a solution - copy 72
 chars, skip 1, loop

 Since white space is independent of data in base64, would this serve the
 same purpose?:

  replace crlf with cr in tBase64Data


 I'll try and report back, 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: Base64 weirdness

2011-10-31 Thread Maarten Koopmans
Still struggling, I'll try,

@Mark: I'm on a mac

On Saturday, October 29, 2011, Richard Gaskin ambassa...@fourthworld.com
wrote:
 Maarten Koopmans wrote:

 You're right, but i've found that other languages don't ignore them,
 whether they are c-based string wrapped scripting languages or compile to
 the JVM for instance.

 I think LC follows the RFC better, but not necessarily better
interoprable.
 Anuway, another recent thread turned out to have a solution - copy 72
 chars, skip 1, loop

 Since white space is independent of data in base64, would this serve the
same purpose?:

  replace crlf with cr in tBase64Data


 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

 ___
 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


Sending image plus parameters on ios

2011-10-31 Thread Maarten Koopmans
. Can I just do that with post and All Will Be Well? Or any special
precautions (I started base64 encoding, but wonder if it is necessary)

--Maarten
___
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


Base64 weirdness

2011-10-29 Thread Maarten Koopmans
Sorry for the cross-post from the forum, but this (silly) thing is
becoming a blocker.

A (to me) subtle question, which has to do with the base64 encoding. A
base 64 encoded binary needs to be a multiple of 4. It' what all other
implementation seem to do as well (tested Scala (JVM) and REBOL (C
underneath)).

But if I test with a standalone file like this:

put /Users/maartenkoopmans/Desktop/pw.jpg into tFilename
put base64encode(url(binfile:  tFilename)) into tImage
answer file read and converted
answer the length of tImage

I consistently get 7758 as length in Livecode, and 7652 in other
implementaions (REBOL, Scala). The LC form has two bytes to much to be
multiple of 4, and way more than the others, which are multiples of
fours. So how do you get your data back then to display the image in a
different environment (say, as webserver)?

Any thoughts appreciated...

--Maarten

___
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: Base64 weirdness

2011-10-29 Thread Maarten Koopmans
You're right, but i've found that other languages don't ignore them,
whether they are c-based string wrapped scripting languages or compile to
the JVM for instance.

I think LC follows the RFC better, but not necessarily better interoprable.
Anuway, another recent thread turned out to have a solution - copy 72
chars, skip 1, loop


--Maarten

On Saturday, October 29, 2011, Richard Gaskin ambassa...@fourthworld.com
wrote:
 Maarten Koopmans wrote:

 Sorry for the cross-post from the forum, but this (silly) thing is
 becoming a blocker.

 A (to me) subtle question, which has to do with the base64 encoding. A
 base 64 encoded binary needs to be a multiple of 4. It' what all other
 implementation seem to do as well (tested Scala (JVM) and REBOL (C
 underneath)).

 But if I test with a standalone file like this:

 put /Users/maartenkoopmans/Desktop/pw.jpg into tFilename
 put base64encode(url(binfile:  tFilename)) into tImage
 answer file read and converted
 answer the length of tImage

 I consistently get 7758 as length in Livecode, and 7652 in other
 implementaions (REBOL, Scala). The LC form has two bytes to much to be
 multiple of 4, and way more than the others, which are multiples of
 fours. So how do you get your data back then to display the image in a
 different environment (say, as webserver)?

 Any thoughts appreciated...

 What others wrote about line endings is likely the explanation.

 But since base64 implementation should ignore line endings, how is this a
blocker for you?  What software is not unencoding those correctly?

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

 ___
 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] John McCarthy has Died...

2011-10-27 Thread Maarten Koopmans
We need to make new heroes.

On Tue, Oct 25, 2011 at 1:21 PM, Andre Garzia an...@andregarzia.com wrote:
 On Tue, Oct 25, 2011 at 6:57 AM, René Micout 
 rene.mic...@numericable.comwrote:

 Goodbye John...
 For you it is omega pruning...
 :-(


 Can we say it is a closure




 Le 25 oct. 2011 à 01:32, Andre Garzia a écrit :

  Folks,
 
  All my heroes are dieing. Steve Jobs and Dennis Ritchie passed away, now
  John McCarthy has passed away as well... ARGH
 
  (GOODBYE '(JOHN MCCARTHY))
 
  :-(
 
  --
  http://www.andregarzia.com -- All We Do Is Code.
  http://fon.nu -- minimalist url shortening service.
  ___
  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.
 http://fon.nu -- minimalist url shortening service.
 ___
 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


upload binary from ios with image data

2011-10-24 Thread Maarten Koopmans
Hi,

I saw a post on the forums for photos only... has anybody ever:
- take a picture
- added some parameters (like its name or so)

and used post on iOS to get it to the webserver. If so, how?

Any clues greatly appreciated!

--Maarten

___
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 video grabbing external

2011-10-20 Thread Maarten Koopmans
Well, I guess that means nobody is interested :(

On Wednesday, October 19, 2011, Maarten Koopmans maarten.koopm...@gmail.com
wrote:
 Hi,

 Has anybody made a grab video external for iOS, and if so, could you
 contact me off-list on sharing/pricing? I saw that I can take
 pictures, but sometines short movies are very cool as well.

 Cheers,

 Maarten

___
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: Making Sense of Licenses

2011-10-20 Thread Maarten Koopmans
...precisely why I renewed, because upgrade fees per component are not too
much compared with a new license. But, I have the dev program too, so far
worth the money, especially if you're doing mobile.

LC has a much more agressive release cycle these dats, with smaller
improvement coming faster in dot or dot-dot releases.

Personally, I kept my licenses up to date because it was not too expensive,
especially with the recently more agile release cycle. And FWIW: RunRev does
pay attention to the needs (e.g.  enhancements) of those opting in for the
dev program.

All in all, the last 6 months have been a pleasant experience - I think you
can see commitment from Heather's reactions as well.

--Maarten

On Thursday, October 20, 2011, Pete p...@mollysrevenge.com wrote:
 Thanks Mark.  As you say, can't predict the future but good to know what
the
 current situation is, I guess the question should really be addressed to
 Heather.

 Pete
 Molly's Revenge http://www.mollysrevenge.com




 On Thu, Oct 20, 2011 at 10:01 AM, Mark Schonewille 
 m.schonewi...@economy-x-talk.com wrote:

 Hi Pete,

 You never know what future brings, but I believe you'd pay for a new
 license instead of a renewal. If you wait yet another year, you'd still
pay
 the same price for 7.0, which means you get all 6.0 features for free,
just
 like any new customer.

 In my case, I'd pay for 5.0 after having waited a long time and in the
long
 term I'm not paying more than otherwise but I won't get anything for free
 either, because the previous big update was the 4.6 cycle, which I didn't
 buy, and I'd just have to pay a little more for 5.0 (I hope you can
follow
 what I'm saying).

 However, I'm not going to buy the full package. I'm only going to pay for
 the components I really need and next year I will only update those
 components that I really need. This way, I expect to pay roughly 250 or
300
 euro per year instead of 500 for the subscription deal.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 See what you get with only a small contribution. All our LiveCode
downloads
 are listed at http://qery.us/zr

 On 20 okt 2011, at 18:36, Pete wrote:

  I'm curious as to what happens if you do this.  If I opt to not get my
  5.0 upgrade, then when 6.0 comes out decide I want it, do I have to pay
 the
  6.0 upgrade fee AND the 5.0 upgrade fee?  I would guess yes otherwise
I'd
 be
  getting the 5.0 fixes and enhancements for free.
  Pete
  Molly's Revenge http://www.mollysrevenge.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


iOS video grabbing external

2011-10-19 Thread Maarten Koopmans
Hi,

Has anybody made a grab video external for iOS, and if so, could you
contact me off-list on sharing/pricing? I saw that I can take
pictures, but sometines short movies are very cool as well.

Cheers,

Maarten

___
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: iPhone’s ‘Maps’ application

2011-10-12 Thread Maarten Koopmans
I'd be interested too. Could you add pins to those maps as well?

On Wed, Oct 12, 2011 at 1:13 AM, John Dixon dixo...@hotmail.co.uk wrote:


 This from the liveCode website...

 http://www.runrev.com/products/mobile-deployment/iphone-ipad/supported-features/

 We’ve added support for launching URLs, which as well as allowing HTTP
 links to open in Safari, will also allow phone calls to be placed using
 the ‘tel:’ prefix, and also links to open a location in the iPhone’s
 ‘Maps’ application.'

 Anyone know how to open a location in the iPhone 'Maps' application ? I am 
 able to use the UIWebView to display an manipulate 'google' maps, but don't 
 have a clue how to go about accessing the iPhone’s
 ‘Maps’ application in liveCode...

 Anyone ?

 ___
 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] minimal facebook library available

2011-10-12 Thread Maarten Koopmans
How much do you need, and what will you build for that?
And what do we need to raise to make the end result BSD licensed once
its feature-complete?

--Maarten
PS:great work!

On Tue, Oct 11, 2011 at 5:27 AM, Andre Garzia an...@andregarzia.com wrote:
 Folks,

 Thanks to those that contributed with my little fundraising campaign, I am
 now able to release a minimal facebook library. There is still much work to
 be done and I don't plan to stop it.

 You can learn more about my Social Network Library Suite here:
 http://andregarzia.com/page/socialsuite

 You can browse the mercurial repository here:
 http://hg.andregarzia.com/livecode-socialsuite

 I am still raising funds for this suite, so, don't loose your chance to
 contribute.

 WHAT IS AVAILABLE:

 * lib.aag.json.livecode - a minimal JSON library. BSD License.
 * lib.aag.facebook.livecode - a simple low level facebook library.
 * examples/facebook/simpleposter.livecode - a sample stack that posts to a
 user wall.

 Remember this library is GPL licensed. You can only build FREE, OPEN SOURCE
 software with it. If you want a commercial version, then, you'd better join
 the fundraising.

 So guys, can you please test?

 By the way, you will need to register your application on
 http://developer.facebook.com. After registering, you will need to pick your
 application id and application secret and fill the setup card on the example
 stack. I am not sharing my application id and secret with you.

 Cheers
 andre
 PS: fundraiser, sleep with this sound.

 --
 http://www.andregarzia.com -- All We Do Is Code.
 http://fon.nu -- minimalist url shortening service.
 ___
 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


Google maps with custom markers while moving

2011-10-07 Thread Maarten Koopmans
Hi,

Cross-post from forum, but kind of urgent, sorry
Any idea how to achieve this? Some toolkits have a MapView, but I am
clueless on how to do this with LC for iOS.

Any thoughts greatly appreciated!

Cheers, Maarten

___
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


Mapview, gps, markers

2011-10-04 Thread Maarten Koopmans
Hi,

With the location events and all on iOS, do we have a way of showing where
we are, and add some pins (with text, and remove them).

I couldn't find it, does anybody have a workaround?

Best regards, Maarten
___
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: How are folks handling iOS resolution differences?

2011-09-27 Thread Maarten Koopmans
On Tue, Sep 27, 2011 at 3:41 AM, Chipp Walters ch...@chipp.com wrote:
 I can think of a couple ways to manage developing for iPhone 3 vs 4, but am
 wondering how others are handling it?

 I suppose on startup one could auto-size and set the properties of all
 labels, fonts, images, grcs based upon the screen size.

I wouldn't do that...


 Or.

 Have two different stacks, one for iPhone 3, the other for iPhone 4, and
 move all control scripts to libraries.

Or


 Are there other approaches? Does it make sense for a custom control set that
 just 'knows' how to resize based on stack size? I'd appreciate any one
 else's ideas on the subject. Thanks :-)

If you can get by with MobGui I think it autoscales on Retina devices,
but haven't tried that. Easy enough though - create a 320x480 stack
and run. Otherwise, two different stacks. Might as well add an iPad
stack and you have a universal binary for iOS.

--Maarten

___
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: Scaling to device for Android

2011-09-14 Thread Maarten Koopmans
I think we are on the same page, it's just that *I* have to do the work...
But the end  result is probably better.

On Tuesday, September 13, 2011, Richard Gaskin ambassa...@fourthworld.com
wrote:
 I think we're on the same page:  the logic in a logical view is in your
resizeStack handler.

 If I misunderstand please feel free to elaborate.

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

 Maarten Koopmans wrote:

 Not sure I agree. If you work with a logical view you don't need to
 scale at all by default; you can then override it as you see fit

 On Mon, Sep 12, 2011 at 4:06 PM, Richard Gaskin
 ambassador at fourthworld.com wrote:

 Maarten Koopmans wrote:

 Subject says it all: does anyone have a clue or a sample handler that
 they know off? This is a real nuisance otherwise :(

 There's a request in the RQCC for generalized scaling:
 http://quality.runrev.com/show_bug.cgi?id=6589

 Useful as it is for things like some games, anything with controls on it
 will require the developer to write a resizeStack handler to position
things
 appropriately for both the current device and the current orientation.

 Now that I have a great tablet with the Asus Transformer, it drives me
crazy
 to download apps only to find that they merely scale their display for
 tablets, rather than take full advantage of the larger form factor with
a
 unique layout optimized for it.  I don't need 5 wide buttons, I need
more
 of a view on the content. ;)

 And with orientation, if an app only works in one orientation on my
tablet I
 generally uninstall it immediately after I discover that.   I like both
 portrait and landscape orientations for different purposes, and if an
app
 doesn't adapt to me I'm not going to adapt to the app - simpler just to
 uninstall and find one that was crafted more earnestly.

 With LiveCode we have the resizeStack message, sent when the app opens
and
 whenever the device orientation changes.  We can use the screenrect to
 intelligently reposition things to provide an optimal experience on any
 device.

 --



 ___
 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: Scaling to device for Android

2011-09-13 Thread Maarten Koopmans
Not sure I agree. If you work with a logical view you don't need to
scale at all by default; you can then override it as you see fit

On Mon, Sep 12, 2011 at 4:06 PM, Richard Gaskin
ambassa...@fourthworld.com wrote:
 Maarten Koopmans wrote:

 Subject says it all: does anyone have a clue or a sample handler that
 they know off? This is a real nuisance otherwise :(

 There's a request in the RQCC for generalized scaling:
 http://quality.runrev.com/show_bug.cgi?id=6589

 Useful as it is for things like some games, anything with controls on it
 will require the developer to write a resizeStack handler to position things
 appropriately for both the current device and the current orientation.

 Now that I have a great tablet with the Asus Transformer, it drives me crazy
 to download apps only to find that they merely scale their display for
 tablets, rather than take full advantage of the larger form factor with a
 unique layout optimized for it.  I don't need 5 wide buttons, I need more
 of a view on the content. ;)

 And with orientation, if an app only works in one orientation on my tablet I
 generally uninstall it immediately after I discover that.   I like both
 portrait and landscape orientations for different purposes, and if an app
 doesn't adapt to me I'm not going to adapt to the app - simpler just to
 uninstall and find one that was crafted more earnestly.

 With LiveCode we have the resizeStack message, sent when the app opens and
 whenever the device orientation changes.  We can use the screenrect to
 intelligently reposition things to provide an optimal experience on any
 device.

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

 ___
 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


Scaling to device for Android

2011-09-12 Thread Maarten Koopmans
Hi,

Subject says it all: does anyone have a clue or a sample handler that
they know off? This is a real nuisance otherwise :(

--Maarten

___
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: Launch URL on Android

2011-09-08 Thread Maarten Koopmans
Tested a lot, AFAIK this simply doesn't work. Buh 9713 - cast your
votes if you have them :-)

On Mon, Sep 5, 2011 at 7:45 PM, Maarten Koopmans
maarten.koopm...@gmail.com wrote:
 Hi,

 I am trying to use launch url file:docs/test.pdf or docs:/test.doc -
 they are included in Copy Files.

 put specialFolderPath(engine)  /  fileToLoad into loadingURL
 put file: before loadingURL
 replace   with %20 in LoadingURL

 Results in a popup for me to open it with … Internet (or Opera)? Has
 anybody a clue how to view a file on Android?

 Any feedback (or sample Hello World stack that views a file on
 Android) would be greatly appreciated.

 --Maarten


___
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


Launch URL on Android

2011-09-05 Thread Maarten Koopmans
Hi,

I am trying to use launch url file:docs/test.pdf or docs:/test.doc -
they are included in Copy Files.

put specialFolderPath(engine)  /  fileToLoad into loadingURL
put file: before loadingURL
replace   with %20 in LoadingURL

Results in a popup for me to open it with … Internet (or Opera)? Has
anybody a clue how to view a file on Android?

Any feedback (or sample Hello World stack that views a file on
Android) would be greatly appreciated.

--Maarten

___
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: TextLib.rev

2011-08-30 Thread Maarten Koopmans
Thanks!

On Tuesday, August 30, 2011, Yves COPPE yvesco...@skynet.be wrote:
 Hello Peter

 Thank you very much for this very useful library


 Le 30 août 2011 à 00:19, Peter M. Brigham, MD a écrit :

 I collected some of my utilities into a library that I want to make
available to anyone who could use such a thing. They are mostly text
processing routines, since my LC work mostly involves heavy text crunching
and parsing. Here is a list of handlers:

 commandKeyDown -- ctrl-cmd-v pastes plain text (matching formatting of
target field)
 controlKeyDown -- in any field, ctrl-d inserts the date; ctrl-/ swaps
interchanged letters
 mouseup -- lock and unlock fields with a mouseclick
 doAge() -- returns the age given a birthdate and an optional asOf date
 getLastLine() -- returns the line number of the last occurrence of a
string in a container
 howMany() -- returns the number of occurrences of a string in a container
 isAfter() -- true if the given date is after the reference date
 isLower() -- true if a character is a lowercase letter, otherwise false
 isUpper() -- true if a character is an uppercase letter, otherwise false
 itemOffsets() -- returns all the itemoffsets of a string in a container
 lastThing() -- returns the last item of a string, given an itemdelimeter
 lineOffsets() -- returns all the lineoffsets of a string in a container
 mergeLists() -- merge 2 lists without duplicates or empty lines/items
 noDupes() -- remove duplicate lines/items from a list
 offsets() -- returns all the offsets of a string in a container
 popChoose() -- one-line popup choice command (requires a button,
included)
 q() -- returns the submitted string, in quotes
 returns() -- returns a string of n cr's
 rRandom() -- a more random random number generator
 spaces() -- returns a string of n spaces
 sq() -- returns the submitted string, in single quotes
 sws() -- strip white space from start  end of a string
 tabs() -- returns a string of n tabs
 toTitleCase() -- returns the string in title case (The Mutiny on the
Bounty)
 truncate() -- truncate a string to no more than n chars, followed by …
(ellipsis)
 wordOffsets() -- returns all the wordoffsets of a string in a container
 setprop writable -- a virtual field property to lock/unlock a field
 getprop writable -- a virtual field property to lock/unlock a field

 Available at:
 (mac) http://db.tt/qpGsGak
 (win) http://db.tt/uBQlc24

 -- Peter

 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig



 ___
 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

 Greetings.

 Yves COPPE
 yvesco...@skynet.be

 ___
 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: SFTP externals

2011-08-29 Thread Maarten Koopmans
Chipp, what's the toolchain that gets working externals?

Sounds like a good one, btw.

--Maarten

On Monday, August 29, 2011, Josh Mellicker j...@dvcreators.net wrote:
 It would be great if it were able to resume upload or download in the case
that the file had only partially been transferred previously. If you are
using cURL, I believe this is the -T switch.

 -T is a godsend when transferring larger files over intermittent
connections, since the file does not need to start over at the beginning
whenever there's a glitch in the matrix... just picks up where it left off.


 On Aug 28, 2011, at 7:55 PM, Chipp Walters ch...@chipp.com wrote:

 Hey guys. Chris has been working on some cool sftp externals for LC and
 currently they are working on Mac and PC with iOS and Linux support next.

 They do the following:

 Open
 Close
 isConnected
 GetDir
 MkDir
 GetRemoteFile (has async progress messages)
 PutLocalFile ( has async progress messages)
 DeleteRemoteFile

 Anything else you can think of that you use in an sftp external?
 Also, send me an email offlist if you NEED to beta test. Thanks.

 --
 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

___
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] Mediocre Britain

2011-08-29 Thread Maarten Koopmans
On Sunday, August 28, 2011, Petrides, M.D. Marian mpetri...@earthlink.net
wrote:
 Hmmm... sounds suspiciously like No Child Left Behind here in the
States. The sad thing on our side of the pond is that NCLB worked so well
(NOT!) that they have decided to apply its principles to graduate medical
education.  The scary thing is that we Boomers will be the recipients of
this wonderful brand of medical care. --- (dripping with sarcasm, if you
couldn't already tell)


Otoh, you get the results of the regulations your generation made ;-)




 On Aug 28, 2011, at 11:46 AM, Richmond Mathewson wrote:

 http://www.bbc.co.uk/news/uk-14683133

 doesn't frankly surprise me; after all Being British is all about
dumbing
 down things to the lowest common denominator; education, over-regulation
(after all, if 5% of the population are morons the government must screw up
everybody's life by regulating things to protect the morons from themselves:
maybe the morons should be told you are morons, get off your fat,
supplementary-benefit-fed bottoms and start getting your brains working).

 I have just been looking at a series of letters written to my younger son
from his erstwhile school mates at his school in Fife, Scotland; filled with
basic spelling errors and grammar problems (these kids were 11 at the time);
most of them being monoglot English speakers, a few spoke Fife-Scots at
home. My sons, who have  English and Bulgarian as mother tongues, and are
both fluent in German, don't make those sort of spelling errors in any of
their 3 dominant languages.

 If sschool kids cannot spell in their school language how on earth can
one expect them to get their programming syntax right, let alone the odd
nested FOR . . . NEXT loop?

 My younger son starts at Salem on the 10th; as the highest scholarship
holder:

 http://www.salem-net.de/

 I wonder why I'm not sending him to school in Britain?

 ___
 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: iOS UIWebView/MOBGui overlay question

2011-08-28 Thread Maarten Koopmans
You can't make controls on top of a fullscreen UIWebView. You can make a
UIWebView that has limited size and put controls around it. In fact, one of
the mobile examples in the iOS pack is a little web browser that does just
that.

MobGui is a cleverly designed set of grouped controls for iOS (and from what
I know Android is coming).

Imho, both are well worth the money.

--Maarten

On Saturday, August 27, 2011, Ian Wood revl...@azurevision.co.uk wrote:
 Hi all,

 After a long time not being very active on the list I'm gearing up for
some iOS development and have a very specific make-or-break question before
buying the iOS deployment add-on:


 A card has a UIWebView control on it. Can I have other controls showing in
front of the web area? If I can, is performance/scrolling etc. in the
webview going to suffer badly?


 Long version - I need to show HTML content fullscreen but still have some
controls shown in front of the webview, preferably with some transparency.
As an example, look at the controls in GoodReader when viewing locally saved
HTML content.

 Cheers,

 Ian
 ___
 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 UIWebView/MOBGui overlay question

2011-08-28 Thread Maarten Koopmans
Though the SDKs for LC-iOS externals are currently not as stable(due to
Lion, Xcode), I suspect they will be soon. And then you create a navbar
external or so.

Still Cocoa/Objective-C but a whole lot less; with a bit of luck you can
find your nerdef code in a cookbook or on the web.

--Maarten

On Sunday, August 28, 2011, Ian Wood revl...@azurevision.co.uk wrote:

 On 28 Aug 2011, at 11:35, Maarten Koopmans wrote:

 You can't make controls on top of a fullscreen UIWebView. You can make a
 UIWebView that has limited size and put controls around it. In fact, one
of
 the mobile examples in the iOS pack is a little web browser that does
just
 that.

 That's what I was afraid of, from previous experience with the desktop web
view. As a fullscreen web view is a necessity for the app I'm planning it's
time for either hacks or learning Cocoa from scratch. :-(

 One possible approach is to load everything within my own HTML page in an
iFrame and find out if I can layer a PNG over the sub-page but the problem
then is how to find out when it's been pressed - I can see how to talk to
the page via JavaScript but not how to go in the other direction other than
catching browserLoadRequest with delayRequests set to true but that's going
to stop the sub-page loading in the first place.

 Anyone have any bright ideas?

 Ian
 ___
 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


Pages, excel etc in UIWebView

2011-08-26 Thread Maarten Koopmans
Hi,

I know you can display different file types (see subject) in a
UIwebview. So to test it I copy a word, pdf, pages file. Then create a
UIWebView with MobGui and set the specialFolderPath and the file url
to e.g. file://test.pages

Nothing happens :(  Anybody figured this out? I tried this tutorial
http://intkeystrokes.posterous.com/viewing-local-file-in-uiwebview-in-ios-with-l
but it doesn't do the trick either.

Any thoughts or input - as usual- greatly appreciated.

Cheers, Maarten

Off note: I got the same docs in a web popup working in Corona. So it
is possible with my docs and the UIWebView. I suspect I have the path
to the bundled files wrong. Or so. Tested on iPhone4 , iOS 4.3.5

___
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 external won't load

2011-08-25 Thread Maarten Koopmans
Confirmed, as bug 9694 in the QCC. Now let's hope somebody does
something with it for 4.6.4

On Thu, Aug 25, 2011 at 4:05 AM, Maarten Koopmans
maarten.koopm...@gmail.com wrote:
 Hi again Mark,

 Let's see if I can confirm then. What's your LC version, OS version, XCode
 version and SDK version (7?).

 --Maarten

 On Wednesday, August 24, 2011, Mark Schonewille
 m.schonewi...@economy-x-talk.com wrote:
 Hi again, Maarten,

 Yesterday and today, I did a lot of testing with externals. I was able to
 compile the sample external rresocket and included this external in a
 standalone. The standalone was built from the stack included with the sample
 XCode project provided by RunRev. When I tested the standalone, it ran fine
 in both the simulator and on my iPhone.

 Then I created a very simple hello-world external from the template, quite
 similar to yours. The template can be selected after you choose New from
 XCode's file menu. I followed exactly the same steps as with the sample
 external. I was able to run it in the simulator but when I installed it on
 my iPhone, it crashed with the same console messages you posted.

 For now, my conclusion is that the sample externals run fine, but
 externals created with the template won't work. I hope that anyone can
 confirm this.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 What does that error mean? Buy LiveCodeErrors for iPhone now
 http://qery.us/v4 A must-have for LiveCode programmers.

 On 24 aug 2011, at 20:41, Maarten Koopmans wrote:

 Hi Mark,

 My external name is not all lowercase, I'll try that first. Otherwise
 I'll
 mail support.

 --Maarten

 On Wednesday, August 24, 2011, Mark Schonewille 
 m.schonewi...@economy-x-talk.com wrote:
 Hi Maarten,

 This is a known problem. Please, contact supp...@runrev.com and tell
 them
 you're struggling with this problem too.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 What does that error mean? Buy LiveCodeErrors for iPhone now
 http://qery.us/v4 A must-have for LiveCode programmers.

 On 24 aug 2011, at 19:05, Maarten Koopmans wrote:

 Hi,

 I wrote the simplest external possible for iOS, it builds in Xcode,
 but crashes for reasons unknown (to me….) on the iPhone. Simulator
 won't work either. It's so simple, that I'm wondering….. if I can't
 get this to work….

 See below, Maarten

 My IDL looks like this:

 // The name of the external (note external name must be all lowercase!)
 external mbkTest
 use c++-naming
 use objc-objects

 function getString
 return objc-string


 And here is my code(mbkTest.mm):
 #include Foundation/Foundation.h
 #include LiveCode.h

 NSString* getString(void)
 {
   return @test;
 }


 Crash log says: unknown iOS External Test[3436] Warning: Startup
 error: failed to load external


 ___
 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 external won't load

2011-08-25 Thread Maarten Koopmans
Yes, and I need to write an external because serious networking is defunct;
I hope some fix/feature extension comes or I'll have to switch dev platforms
(ironically, as I just moved to LC).

On Thursday, August 25, 2011, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:
 Hi Maarten,

 I've been testing with LC 4.6.3, Mac OS X 10.6.8, XCode 4.0.2, iOS SDK
4.3.3 and LC SDK R7 on an iPhone 3GS.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 What does that error mean? Buy LiveCodeErrors for iPhone now
http://qery.us/v4 A must-have for LiveCode programmers.

 On 25 aug 2011, at 04:05, Maarten Koopmans wrote:

 Hi again Mark,

 Let's see if I can confirm then. What's your LC version, OS version,
XCode
 version and SDK version (7?).

 --Maarten

 On Wednesday, August 24, 2011, Mark Schonewille 
 m.schonewi...@economy-x-talk.com wrote:
 Hi again, Maarten,

 Yesterday and today, I did a lot of testing with externals. I was able
to
 compile the sample external rresocket and included this external in a
 standalone. The standalone was built from the stack included with the
sample
 XCode project provided by RunRev. When I tested the standalone, it ran
fine
 in both the simulator and on my iPhone.

 Then I created a very simple hello-world external from the template,
quite
 similar to yours. The template can be selected after you choose New from
 XCode's file menu. I followed exactly the same steps as with the sample
 external. I was able to run it in the simulator but when I installed it
on
 my iPhone, it crashed with the same console messages you posted.

 For now, my conclusion is that the sample externals run fine, but
 externals created with the template won't work. I hope that anyone can
 confirm this.

 ___
 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


Android mobileDeviceInfo

2011-08-24 Thread Maarten Koopmans
Hi,

Has anyone gotten mobileDeviceInfo with the HOST property working on
Android? I hope to be able to get my local (NATted) IP from that on Android.

Any clues highly appreciated!

Cheers, Maarten
___
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 external won't load

2011-08-24 Thread Maarten Koopmans
Hi,

I wrote the simplest external possible for iOS, it builds in Xcode,
but crashes for reasons unknown (to me….) on the iPhone. Simulator
won't work either. It's so simple, that I'm wondering….. if I can't
get this to work….

See below, Maarten

My IDL looks like this:

// The name of the external (note external name must be all lowercase!)
external mbkTest
use c++-naming
use objc-objects

function getString
return objc-string


And here is my code(mbkTest.mm):
#include Foundation/Foundation.h
#include LiveCode.h

NSString* getString(void)
{
return @test;
}


Crash log says: unknown iOS External Test[3436] Warning: Startup
error: failed to load external

___
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 external won't load

2011-08-24 Thread Maarten Koopmans
Hi Mark,

My external name is not all lowercase, I'll try that first. Otherwise I'll
mail support.

--Maarten

On Wednesday, August 24, 2011, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:
 Hi Maarten,

 This is a known problem. Please, contact supp...@runrev.com and tell them
you're struggling with this problem too.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 What does that error mean? Buy LiveCodeErrors for iPhone now
http://qery.us/v4 A must-have for LiveCode programmers.

 On 24 aug 2011, at 19:05, Maarten Koopmans wrote:

 Hi,

 I wrote the simplest external possible for iOS, it builds in Xcode,
 but crashes for reasons unknown (to me….) on the iPhone. Simulator
 won't work either. It's so simple, that I'm wondering….. if I can't
 get this to work….

 See below, Maarten

 My IDL looks like this:

 // The name of the external (note external name must be all lowercase!)
 external mbkTest
 use c++-naming
 use objc-objects

 function getString
 return objc-string


 And here is my code(mbkTest.mm):
 #include Foundation/Foundation.h
 #include LiveCode.h

 NSString* getString(void)
 {
return @test;
 }


 Crash log says: unknown iOS External Test[3436] Warning: Startup
 error: failed to load external



 ___
 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: Sockets Question

2011-08-24 Thread Maarten Koopmans
On Wednesday, August 24, 2011, Andrew Henshaw hens...@me.com wrote:
 Im afraid that assumes I can program in objective c :)   Ive dabbled,  but
its far beyond me at the moment !

 Thanks for the pointers though,  maybe it is something I can farm out to
rentacoder.

You probably can't this is soecialized stuff on the networking side. I have
a working version with a rebol server ( desktop) and a Lua client that shows
how it can be done.

Contact me off-list if you wish to make sure we are not competitors :-) and
I might be able to help, as I try to port this over to LC for iOS at the
moment.



 Andy

 On 24 Aug 2011, at 21:21, Maarten Koopmans wrote:

 Assuming you're talking iOS, use multicast in the mDNS group via an
 Objective-C external. Pick your UDP port, and you'll notice that all wifi
 routers support zeroconf/bonjour.

 This assumes the desktop sends.

 --Maarten


 ___
 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 external won't load

2011-08-24 Thread Maarten Koopmans
Hi again Mark,

Let's see if I can confirm then. What's your LC version, OS version, XCode
version and SDK version (7?).

--Maarten

On Wednesday, August 24, 2011, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:
 Hi again, Maarten,

 Yesterday and today, I did a lot of testing with externals. I was able to
compile the sample external rresocket and included this external in a
standalone. The standalone was built from the stack included with the sample
XCode project provided by RunRev. When I tested the standalone, it ran fine
in both the simulator and on my iPhone.

 Then I created a very simple hello-world external from the template, quite
similar to yours. The template can be selected after you choose New from
XCode's file menu. I followed exactly the same steps as with the sample
external. I was able to run it in the simulator but when I installed it on
my iPhone, it crashed with the same console messages you posted.

 For now, my conclusion is that the sample externals run fine, but
externals created with the template won't work. I hope that anyone can
confirm this.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 What does that error mean? Buy LiveCodeErrors for iPhone now
http://qery.us/v4 A must-have for LiveCode programmers.

 On 24 aug 2011, at 20:41, Maarten Koopmans wrote:

 Hi Mark,

 My external name is not all lowercase, I'll try that first. Otherwise
I'll
 mail support.

 --Maarten

 On Wednesday, August 24, 2011, Mark Schonewille 
 m.schonewi...@economy-x-talk.com wrote:
 Hi Maarten,

 This is a known problem. Please, contact supp...@runrev.com and tell
them
 you're struggling with this problem too.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 What does that error mean? Buy LiveCodeErrors for iPhone now
 http://qery.us/v4 A must-have for LiveCode programmers.

 On 24 aug 2011, at 19:05, Maarten Koopmans wrote:

 Hi,

 I wrote the simplest external possible for iOS, it builds in Xcode,
 but crashes for reasons unknown (to me….) on the iPhone. Simulator
 won't work either. It's so simple, that I'm wondering….. if I can't
 get this to work….

 See below, Maarten

 My IDL looks like this:

 // The name of the external (note external name must be all lowercase!)
 external mbkTest
 use c++-naming
 use objc-objects

 function getString
 return objc-string


 And here is my code(mbkTest.mm):
 #include Foundation/Foundation.h
 #include LiveCode.h

 NSString* getString(void)
 {
   return @test;
 }


 Crash log says: unknown iOS External Test[3436] Warning: Startup
 error: failed to load external


 ___
 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


Android's mobileDeviceInfo

2011-08-24 Thread Maarten Koopmans
Hi,

If you look in the Android release notes ( p27) you'll see a function
mobileDeviceInfo. I've tested it like this:

on mouseUp
  ask mobileDeviceInfo(DISPLAY) with OK
end mouseUp

with a simple Android stack and one button. Also tried other fields like
HOST (the one I actually need) and ID. Neither the simulator, my Samsung
Galaxy S or my HTC Flyer show a dialog. Asking just a static string works
fine.

Anybody tried this (LC 4.6.3)

Any feedback greatly appreciated!

--Maarten
___
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: Android's mobileDeviceInfo

2011-08-24 Thread Maarten Koopmans
Thanks, but tried that, no result. The ask was a slip of the mind while
typing. Can anyone confirm that mobileDeviceInfo doesn't work (best tested
on actual device) before I file a bug report?

--Maarten

On Thursday, August 25, 2011, J. Landman Gay jac...@hyperactivesw.com
wrote:
 On 8/24/11 9:03 PM, Maarten Koopmans wrote:

 Hi,

 If you look in the Android release notes ( p27) you'll see a function
 mobileDeviceInfo. I've tested it like this:

 on mouseUp
   ask mobileDeviceInfo(DISPLAY) with OK
 end mouseUp

 with a simple Android stack and one button. Also tried other fields like
 HOST (the one I actually need) and ID. Neither the simulator, my Samsung
 Galaxy S or my HTC Flyer show a dialog. Asking just a static string works
 fine.

 Do you mean answer? Ask is for getting user input. The way it's
written above, the device info would be shown as the prompt. In either case,
apparently the engine isn't evaluating the function.

 If answer also doesn't work, try moving the function outside of the
answer command, like this:

 put mobileDeviceInfo(DISPLAY) into tDeviceInfo
 answer tDeviceInfo

 --
 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: [OT] More Apple Foolishness

2011-08-17 Thread Maarten Koopmans
I have a cloud backed storage piece of software that has a WebDAV front end
and multiple back ends. The idea was to make a PAYG service of that, but we
thought there wouldn't be interest.

It works with win/lin/osx/ios/androud clients.

Are you telling me I should revisit this business decision?

Cheers, Maarten

On Thursday, July 28, 2011, Chipp Walters ch...@chipp.com wrote:
 On Wed, Jul 27, 2011 at 9:25 PM, J. Landman Gay jac...@hyperactivesw.com
wrote:



 I have read more Apple documentation in the last 2 months than I have in
 the last ten years. Maybe I'm just too entrenched in old habits, maybe
it's
 intuitive to new users.


 Yep, agreed. You should see the gymnastics I have to go through just to
send
 a Keynote presentation from my iPad to another person. You can't typically
 send it via email because it's too large and iMail just barfs, so then you
 need to deposit it in a public folder in your DropBox account, but of
course
 Apple doesn't support third party 'file managers' (even though for some
damn
 reason they've decided NOT to have one of their own-- OOPS, I guess some
 actually think MobileMe was the answer!)

 In order to get it to DropBox you need to set up the pricey WebDav
product:
 DropDav, then send it there, then get the URL from your DropBox account
and
 finally send THAT to the person you're trying to share the Keynote
 presentation with.

 Oh, the other way is to 'tether' your 'Post PC iPad' to an 'old
generation'
 PC, wait the 45 minutes or so that it forces a sync on you, then grab it
 from iTunes (the single most frustrating and annoying app interface-wise
on
 the whole planet on any OS), and then email it from your PC.
 ___
 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


OT: gmail two factor authentication

2011-07-24 Thread Maarten Koopmans
All,

I just got a nice box from Google explaining that there was suspicious
account activity from Mexico (I live in Amsterdam). I changed my
password, enabled two-factor authentication using their iPhone app and
use app-specific passwords.

Also, I changed ALL passwords of all online services I use to new,
unique ones. My guess: it took one malicious web page, even though I
am up-to-fate with every component

Anyway, if your a GMail user I strongly suggest switching to their
two-factor authentication (meaning that you provide a uniquely
generated number every time you login). I mean... if it can happen to
a careful user like me who used to work on identity management - it
literally can happen to anyone.

I knew that - but I did change all my passwords and checked my credit
card view (which is luckily live) after the adrenalin rush.

Just thought to share the experience. We all read the horror stories,
I can confirm them now first-hand (though little damage has been done
so far AFAIK).

1) use unique passwords per service
2) use two factor authN on Google - it's a great add-on to the service

--Maarten

___
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: IP address (incl NAT address) of my device

2011-06-18 Thread Maarten Koopmans
Hi,
See subject. My app needs to know the device its IP, including the NAT
version if applicable.

put the hostAddresstoName of the hostName into tIP

doesn't work on iOS. Any thoughts greatly appreciated!
--Maarten

___
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: IP address (incl NAT address) of my device

2011-06-18 Thread Maarten Koopmans
John,

No, I saw that. I want the IP address of the iOS device my app is
running on. p39 is a way of monitoring the IP address of another
server for reachability.

Thanks,

Maarten

On Sat, Jun 18, 2011 at 12:38 PM, John Dixon dixo...@hotmail.co.uk wrote:

 Page 36 of the iOS 4.6.1 release notes - for the device
 Page 38 of the iOS 4.6.1 release notes - for its IP

 Hi,
 See subject. My app needs to know the device its IP, including the NAT
 version if applicable.

 put the hostAddresstoName of the hostName into tIP

 doesn't work on iOS. Any thoughts greatly appreciated!


 ___
 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: UDP, multicast

2011-06-14 Thread Maarten Koopmans
I guess that' a no, then :'(

--Maarten

Op 13 jun. 2011 10:16 schreef Maarten Koopmans maarten.koopm...@gmail.com
het volgende:

 Hi,

 Is there a way to send or receive multicast in livecode? I want to use
that with a TTL=2 so devices on the same network can discover each other
(cross-platform).

 Thanks,

 Maarten
___
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


UDP, multicast

2011-06-13 Thread Maarten Koopmans
Hi,

Is there a way to send or receive multicast in livecode? I want to use that
with a TTL=2 so devices on the same network can discover each other
(cross-platform).

Thanks,

Maarten
___
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: revdb_query in function silently errs out

2011-05-09 Thread Maarten Koopmans
I'll try that and maybe sqlyoga, but I am using sqlite with only
milliseconds in between. But query results as arrays etc. Sounds like
a missing piece, so while typing I have decided to give sqlyoga a try.

--Maarten

On Monday, May 9, 2011, Bob Sneidar b...@twft.com wrote:
 How long are you leaving the connection idle? SQL typically has connection 
 timeouts built in so that someone cannot use up all the available threads and 
 then dump them without terminating them as a means of denying service.

 When working with SQL I like to open/reconnect, make my queries, then 
 disconnect right away without any user interaction. Otherwise, a user could 
 leave an error dialog open and not respond until after the database times out.

 I usually have in my stack or database connection card scripts for 
 initializing and making the connection, idling the connection (which is 
 really a disconnect) and closing the connection. To SQL this results in 
 either a connection being made, or else a disconnect, but to my apps after 
 the first connection is made, I set a state wherein I know I can proceed 
 after the first connection is made because I know the database is there and 
 responding to queries. Hence the idle state.

 I wrap all my sql connection/query commands in a try/catch statement so that 
 if an error is generated, I call my disconnect handler first, then alert the 
 user that an error has occurred. This has eliminated virtually all the normal 
 SQL issues I used to have. It's also good programming practice for SQL.

 Of course, SQLite is a local file (typically) so this is not as much of an 
 issue, but still I believe there are default timeouts you can encounter.

 Also, consider seriously, Trevor DeVore's great SQLYoga utility, which takes 
 most of the pain and suffering out of working with SQL. You can return 
 queries as lists, arrays or records, which I think are a special kind of 
 SQLYoga array.

 Bob


 On May 9, 2011, at 10:26 AM, Maarten Koopmans wrote:

 Hi,

 I have a simple select * from table against a sqlite dbid in a function,
 Livecode 4.6.1 on OS 10.6.7

 For some weird reason it errs out, silently. The only reason I can think of
 is that I didn;t close my cursor in a previous call, but other than that, I
 am snow blind. Anybody ever seen this before?

 --Maarten
 ___
 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: revdb_query in function silently errs out

2011-05-09 Thread Maarten Koopmans
I am doing a revdb_query in a function; my database id is a global. I
am in a handler that has done a few queries, then calls said function.
The sql has been reduced to a dummy select * from table. Earlier
cursors are closed, and I use sqlite.

I use 'answer question ...' and the one right after the query ( and
all logic after that) is never reached. One thing I'll try is
open/close a connection in the function.

--Maarten

On Monday, May 9, 2011, Pete p...@mollysrevenge.com wrote:
 Hi Maarten,
 Can you describe in a bit more detail what happens?  Are you using
 revDataFromQuery or revQueryDatabase to issue the SELECT?  If it errors out
 silently, how do you discover that it didn't work?
 Pete
 Molly's Revenge http://www.mollysrevenge.com




 On Mon, May 9, 2011 at 1:27 PM, Maarten Koopmans maarten.koopm...@gmail.com
 wrote:

 I'll try that and maybe sqlyoga, but I am using sqlite with only
 milliseconds in between. But query results as arrays etc. Sounds like
 a missing piece, so while typing I have decided to give sqlyoga a try.

 --Maarten

 On Monday, May 9, 2011, Bob Sneidar b...@twft.com wrote:
  How long are you leaving the connection idle? SQL typically has
 connection timeouts built in so that someone cannot use up all the available
 threads and then dump them without terminating them as a means of denying
 service.
 
  When working with SQL I like to open/reconnect, make my queries, then
 disconnect right away without any user interaction. Otherwise, a user could
 leave an error dialog open and not respond until after the database times
 out.
 
  I usually have in my stack or database connection card scripts for
 initializing and making the connection, idling the connection (which is
 really a disconnect) and closing the connection. To SQL this results in
 either a connection being made, or else a disconnect, but to my apps after
 the first connection is made, I set a state wherein I know I can proceed
 after the first connection is made because I know the database is there and
 responding to queries. Hence the idle state.
 
  I wrap all my sql connection/query commands in a try/catch statement so
 that if an error is generated, I call my disconnect handler first, then
 alert the user that an error has occurred. This has eliminated virtually all
 the normal SQL issues I used to have. It's also good programming practice
 for SQL.
 
  Of course, SQLite is a local file (typically) so this is not as much of
 an issue, but still I believe there are default timeouts you can encounter.
 
  Also, consider seriously, Trevor DeVore's great SQLYoga utility, which
 takes most of the pain and suffering out of working with SQL. You can return
 queries as lists, arrays or records, which I think are a special kind of
 SQLYoga array.
 
  Bob
 
 
  On May 9, 2011, at 10:26 AM, Maarten Koopmans wrote:
 
  Hi,
 
  I have a simple select * from table against a sqlite dbid in a
 function,
  Livecode 4.6.1 on OS 10.6.7
 
  For some weird reason it errs out, silently. The only reason I can think
 of
  is that I didn;t close my cursor in a previous call, but other than
 that, I
  am snow blind. Anybody ever seen this before?
 
  --Maarten
  ___
  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-li

___
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: revdb_query in function silently errs out

2011-05-09 Thread Maarten Koopmans
Well, I just opened and closed a new connection inside the function, and
that works like it should. So it looks like I'll make a stack-based
verify-connection function (and it's little brother, clean-up connection).

--Maarten

On Mon, May 9, 2011 at 11:39 PM, Pete p...@mollysrevenge.com wrote:

 Got it, thanks.  I've experienced similar things in LC.  Is it possible
 that
 the data coming back from your query could include NULL characters?  I've
 seen that cause problems like this.

 Some SQL dbs do have connection timeouts but I don't think SQlite does.

 Might be able to figure out more if you post a snippet of your code.

 Pete
 Molly's Revenge http://www.mollysrevenge.com




 On Mon, May 9, 2011 at 2:22 PM, Maarten Koopmans 
 maarten.koopm...@gmail.com
  wrote:

  I am doing a revdb_query in a function; my database id is a global. I
  am in a handler that has done a few queries, then calls said function.
  The sql has been reduced to a dummy select * from table. Earlier
  cursors are closed, and I use sqlite.
 
  I use 'answer question ...' and the one right after the query ( and
  all logic after that) is never reached. One thing I'll try is
  open/close a connection in the function.
 
  --Maarten
 
  On Monday, May 9, 2011, Pete p...@mollysrevenge.com wrote:
   Hi Maarten,
   Can you describe in a bit more detail what happens?  Are you using
   revDataFromQuery or revQueryDatabase to issue the SELECT?  If it errors
  out
   silently, how do you discover that it didn't work?
   Pete
   Molly's Revenge http://www.mollysrevenge.com
  
  
  
  
   On Mon, May 9, 2011 at 1:27 PM, Maarten Koopmans 
  maarten.koopm...@gmail.com
   wrote:
  
   I'll try that and maybe sqlyoga, but I am using sqlite with only
   milliseconds in between. But query results as arrays etc. Sounds like
   a missing piece, so while typing I have decided to give sqlyoga a try.
  
   --Maarten
  
   On Monday, May 9, 2011, Bob Sneidar b...@twft.com wrote:
How long are you leaving the connection idle? SQL typically has
   connection timeouts built in so that someone cannot use up all the
  available
   threads and then dump them without terminating them as a means of
  denying
   service.
   
When working with SQL I like to open/reconnect, make my queries,
 then
   disconnect right away without any user interaction. Otherwise, a user
  could
   leave an error dialog open and not respond until after the database
  times
   out.
   
I usually have in my stack or database connection card scripts for
   initializing and making the connection, idling the connection (which
 is
   really a disconnect) and closing the connection. To SQL this results
 in
   either a connection being made, or else a disconnect, but to my apps
  after
   the first connection is made, I set a state wherein I know I can
 proceed
   after the first connection is made because I know the database is
 there
  and
   responding to queries. Hence the idle state.
   
I wrap all my sql connection/query commands in a try/catch statement
  so
   that if an error is generated, I call my disconnect handler first,
 then
   alert the user that an error has occurred. This has eliminated
 virtually
  all
   the normal SQL issues I used to have. It's also good programming
  practice
   for SQL.
   
Of course, SQLite is a local file (typically) so this is not as much
  of
   an issue, but still I believe there are default timeouts you can
  encounter.
   
Also, consider seriously, Trevor DeVore's great SQLYoga utility,
 which
   takes most of the pain and suffering out of working with SQL. You can
  return
   queries as lists, arrays or records, which I think are a special kind
 of
   SQLYoga array.
   
Bob
   
   
On May 9, 2011, at 10:26 AM, Maarten Koopmans wrote:
   
Hi,
   
I have a simple select * from table against a sqlite dbid in a
   function,
Livecode 4.6.1 on OS 10.6.7
   
For some weird reason it errs out, silently. The only reason I can
  think
   of
is that I didn;t close my cursor in a previous call, but other than
   that, I
am snow blind. Anybody ever seen this before?
   
--Maarten
___
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: menu icon in OS X

2011-05-03 Thread Maarten Koopmans
On Tue, May 3, 2011 at 3:33 PM, Ken Ray k...@sonsothunder.com wrote:

  I Googled a lot, but I haven't found it...
 
  I'd like to have a little menu icon to the right on closing my app in
 the
  Mac menu bar, is that possible at all. And when a user clicks the icon a
  menu appears. If you've ever seen the dropbox menu icon, you know what I
  mean. Any small snippet (as usual ;-) highly appreciated.
 
  Check the Status icon support (4.5 ­ experimental) section of the
  Release Notes. You can open the Release Notes from the Help menu in the
  IDE. This is a relatively new feature that allows you to put a status
  icon in the Mac menu bar (or system tray on Windows.) It is experimental
  for now, which means it may have bugs or irregularities.
 
  I don't think the icon will remain if you quit your app. You'll need to
  just hide your stack instead of quitting.

 Sorry to be late to the party on this, but currently the status icon
 support
 in LC is for Windows only (at least according to the Read Me).


Better late than never :-)



 I have a step-by-step tutorial on setting one up using Xcode, that includes
 calling AppleScript from any status menu items you create (which would
 allow
 you to reopen your app, or anything else AS supports).

 Here's the URL:

 http://www.sonsothunder.com/devres/livecode/tutorials/StatusMenu.html


Much appreciated, thanks.

--Maarten
___
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


The overwhelming data grid

2011-04-20 Thread Maarten Koopmans
Hi,

I have a use case for the data grid, but the component feels a bit
overwhelming. Really simple: I have rows for the grid in 3 columns, I
want to style each column diferently, and attach different actions to
every column type (cell). Some cells may have an icon instead of a
text, or both. Text may have fonts, color, 

There are quite some tutorials, and ways to get started- and lost for
a few says. Datagrid looks very powerful, but with a steep learning
curve. Any pointers appreciated!


--Maarten

___
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: The overwhelming data grid

2011-04-20 Thread Maarten Koopmans
Nevermind, I just found the excellent lessons at:

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/

Should be included in the manual though!

On Wed, Apr 20, 2011 at 8:11 AM, Maarten Koopmans 
maarten.koopm...@gmail.com wrote:

 Hi,

 I have a use case for the data grid, but the component feels a bit
 overwhelming. Really simple: I have rows for the grid in 3 columns, I
 want to style each column diferently, and attach different actions to
 every column type (cell). Some cells may have an icon instead of a
 text, or both. Text may have fonts, color, 

 There are quite some tutorials, and ways to get started- and lost for
 a few says. Datagrid looks very powerful, but with a steep learning
 curve. Any pointers appreciated!


 --Maarten

___
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 field in modal allows no input

2011-04-18 Thread Maarten Koopmans
I added this to openCard, but alas, still didn't work :-(

--Maarten

On Sun, Apr 17, 2011 at 7:45 AM, Maarten Koopmans 
maarten.koopm...@gmail.com wrote:

 Thanks, I will test. The advantage of livecode being that you can
 redesign your UI flow so fast, i came up witha flow without modals tha
 people seems to like more (modals can be a bit intrusive). But I'll
 test anyway See if this trick helps for future ference :-)

 --Maarten

 On Saturday, April 16, 2011, Mike Bonner bonnm...@gmail.com wrote:
  No longer have a mac, but I seem to remember this same thing happening in
  non-lc applications also, and intermittently in the lc dictionary(I think
  there were several threads about the dictionary annoyance here).  The fix
  being to click outside the field then refocus the field.
 
  As a workaround, if its fast enough maybe you can use click and click a
  blank spot on the card, then focus back on the field object. Or more
 simply,
  have an obscured button or field (put it behind something opaque) and
 then
 
  focus on field mycheaterfield
  wait 10 milliseconds
  focus on field fieldIreallywantfocused
 
  don't know if it will work, can't test, but its a thought.
 
  On Sat, Apr 16, 2011 at 11:23 AM, Maarten Koopmans 
  maarten.koopm...@gmail.com wrote:
 
  Mac bug. Same stack on windows work fine with text input on a modal in a
  dragDrop. I'll see if I can file a bug.
 
  If you  know of a work around (except redesigning the UI.), I'd be
 very
  thankful.
 
  --Maarten
 
  On Sat, Apr 16, 2011 at 5:26 PM, Maarten Koopmans 
  maarten.koopm...@gmail.com wrote:
 
   Hi
  
   I have a main stack that accepts a drag-drop for files like this on a
   hidden field the size of the card:
  
   *on* dragDrop
  
  *if* the dragData[files] is not empty *then*
  
 *modal* stack  AddMetaData
  
 addFiles(dragData[files])
  
  *end* *if*
  
  *set* the dragAction to link
  
  *pass* dragDrop
  
   *end* dragDrop
  
  
   The addFiles command just copies the files.
  
  
   AddMetaData is a substack with just one text field and an OK button,
  
  
   *on* mouseUp
  
  *global* gNewTags
  
  *put the text of field MetaData into gNewMetaData*
  
  *close* this stack
  
   *end* mouseUp
  
  
   The problem: the text field has focus, but I can't type in it!
  
  
   I tried to mimick it with a simple mainstack/substack where the
 mainstack
   has a buttonGo modal, and the moda stack is the same, and there
 it
   works. So I must be missings omething with te message path/drag
  drop/.
  
  
   Any clues? I have thought about a more wizard like behaviour, but nce
 I
   start hiding/closing stacks and using go to things are indeed
 editable,
  but
   highly unpredictable.
  
  
   --Maarten
  
  
   ** Just to be the clear, my use case is quite simple:
   1- user drags file on stack
   2- user adds some mandatory info about the files
   3- files get copied
  
   (2) is causing the problems, probably because I don't have my head
  wrapped
   around LC completely (though I do feel more comfortable more and more)
  
  ___
  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: Check for first run

2011-04-18 Thread Maarten Koopmans
Yes, I was thinking along those lines but... Iw ant the user to point to a
root folder, where (among others) the db file will be stored :-) But I
should be able to take it from here.

--Maarten

On Sun, Apr 17, 2011 at 11:55 PM, Pete p...@mollysrevenge.com wrote:

 Even if the db does exist, just set a value into a column in in to indicate
 initialisation has occurred.

 Pete
 Molly's Revenge http://www.mollysrevenge.com




 On Sun, Apr 17, 2011 at 1:38 PM, Warren Samples war...@warrensweb.us
 wrote:

  On Sunday, April 17, 2011 01:42:28 AM Maarten Koopmans wrote:
   Hi,
  
   Is there a best practice for checking if the application is on  a
   first run for a standalone(especially one that will go to an App store
   eventually)?
  
   I simply need to ask the user a few questions on first run (and set up
   a sqlite db).
  
   Best, Maarten
 
 
  Why don't you check for the existence of the db file? If it exists, your
  app has been run, no? If it doesn't
  exist, then you'll have to go through setup, even if it has run before
 but
  the file has been deleted.
 
  Warren
 
  ___
  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: text field in modal allows no input

2011-04-18 Thread Maarten Koopmans
Thanks Trevor, that does the trick, also with a sheet, which gave the same
problem! Sadly, I don't have acess to the QCC anymore sine the new paid
supoort list thing.

Thanks a lot for your help though!

--Maarten

On Mon, Apr 18, 2011 at 1:22 PM, Trevor DeVore li...@mangomultimedia.comwrote:

 On Sat, Apr 16, 2011 at 11:26 AM, Maarten Koopmans 
 maarten.koopm...@gmail.com wrote:

  I have a main stack that accepts a drag-drop for files like this on a
  hidden
  field the size of the card:
 
  *on* dragDrop
 
*if* the dragData[files] is not empty *then*
 
   *modal* stack  AddMetaData
 
   addFiles(dragData[files])
 
*end* *if*
 
*set* the dragAction to link
 
*pass* dragDrop
 
  *end* dragDrop'
 

 You might try processing the files outside of the drag event.

 Change:
 modal stack  AddMetaData
 addFiles(dragData[files])

 To:
 put the dragData[files] into theFiles
 send ProcessDrop theFiles to me in 0 milliseconds

 And add:
 on ProcessDrop pFiles
modal stack  AddMetaData
addFiles pFiles
 end ProcessDrop

 One thing to note is that it is possible for dragData[files] to disappear
 after a drag and drop operation. I have seen graphics applications that
 make
 a file available during drag and drop but then delete it when the drag and
 drop operation is complete. In this scenario you need to copy the files to
 a
 new location in dragDrop and then process the copies outside of the drag
 and
 drop operation. This scenario is probably rare though.

 Even if this solves the problem I would recommend filing a bug report so
 the
 issue can possibly be fixed in the future.

 --
 Trevor DeVore
 Blue Mango Learning Systems

 LiveCode Resources for Developers: http://livecode.bluemangolearning.com

 Get SQL Yoga as part of the Omegabundle for LiveCode 2011: Save 85% on
 essential tools for LiveCode development - omegabundle.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


menu icon in OS X

2011-04-18 Thread Maarten Koopmans
Hi,

I Googled a lot, but I haven't found it...

I'd like to have a little menu icon to the right on closing my app in the
Mac menu bar, is that possible at all. And when a user clicks the icon a
menu appears. If you've ever seen the dropbox menu icon, you know what I
mean. Any small snippet (as usual ;-) highly appreciated.

--Maarten
___
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 for first run

2011-04-17 Thread Maarten Koopmans
Hi,

Is there a best practice for checking if the application is on  a
first run for a standalone(especially one that will go to an App store
eventually)?

I simply need to ask the user a few questions on first run (and set up
a sqlite db).

Best, Maarten

___
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 field in modal allows no input

2011-04-16 Thread Maarten Koopmans
Hi

I have a main stack that accepts a drag-drop for files like this on a hidden
field the size of the card:

*on* dragDrop

   *if* the dragData[files] is not empty *then*

  *modal* stack  AddMetaData

  addFiles(dragData[files])

   *end* *if*

   *set* the dragAction to link

   *pass* dragDrop

*end* dragDrop


The addFiles command just copies the files.


AddMetaData is a substack with just one text field and an OK button,


*on* mouseUp

   *global* gNewTags

   *put the text of field MetaData into gNewMetaData*

   *close* this stack

*end* mouseUp


The problem: the text field has focus, but I can't type in it!


I tried to mimick it with a simple mainstack/substack where the mainstack
has a buttonGo modal, and the moda stack is the same, and there it
works. So I must be missings omething with te message path/drag drop/.


Any clues? I have thought about a more wizard like behaviour, but nce I
start hiding/closing stacks and using go to things are indeed editable, but
highly unpredictable.


--Maarten


** Just to be the clear, my use case is quite simple:
1- user drags file on stack
2- user adds some mandatory info about the files
3- files get copied

(2) is causing the problems, probably because I don't have my head wrapped
around LC completely (though I do feel more comfortable more and more)
___
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 field in modal allows no input

2011-04-16 Thread Maarten Koopmans
Thanks, I will test. The advantage of livecode being that you can
redesign your UI flow so fast, i came up witha flow without modals tha
people seems to like more (modals can be a bit intrusive). But I'll
test anyway See if this trick helps for future ference :-)

--Maarten

On Saturday, April 16, 2011, Mike Bonner bonnm...@gmail.com wrote:
 No longer have a mac, but I seem to remember this same thing happening in
 non-lc applications also, and intermittently in the lc dictionary(I think
 there were several threads about the dictionary annoyance here).  The fix
 being to click outside the field then refocus the field.

 As a workaround, if its fast enough maybe you can use click and click a
 blank spot on the card, then focus back on the field object. Or more simply,
 have an obscured button or field (put it behind something opaque) and then

 focus on field mycheaterfield
 wait 10 milliseconds
 focus on field fieldIreallywantfocused

 don't know if it will work, can't test, but its a thought.

 On Sat, Apr 16, 2011 at 11:23 AM, Maarten Koopmans 
 maarten.koopm...@gmail.com wrote:

 Mac bug. Same stack on windows work fine with text input on a modal in a
 dragDrop. I'll see if I can file a bug.

 If you  know of a work around (except redesigning the UI.), I'd be very
 thankful.

 --Maarten

 On Sat, Apr 16, 2011 at 5:26 PM, Maarten Koopmans 
 maarten.koopm...@gmail.com wrote:

  Hi
 
  I have a main stack that accepts a drag-drop for files like this on a
  hidden field the size of the card:
 
  *on* dragDrop
 
     *if* the dragData[files] is not empty *then*
 
        *modal* stack  AddMetaData
 
        addFiles(dragData[files])
 
     *end* *if*
 
     *set* the dragAction to link
 
     *pass* dragDrop
 
  *end* dragDrop
 
 
  The addFiles command just copies the files.
 
 
  AddMetaData is a substack with just one text field and an OK button,
 
 
  *on* mouseUp
 
     *global* gNewTags
 
     *put the text of field MetaData into gNewMetaData*
 
     *close* this stack
 
  *end* mouseUp
 
 
  The problem: the text field has focus, but I can't type in it!
 
 
  I tried to mimick it with a simple mainstack/substack where the mainstack
  has a buttonGo modal, and the moda stack is the same, and there it
  works. So I must be missings omething with te message path/drag
 drop/.
 
 
  Any clues? I have thought about a more wizard like behaviour, but nce I
  start hiding/closing stacks and using go to things are indeed editable,
 but
  highly unpredictable.
 
 
  --Maarten
 
 
  ** Just to be the clear, my use case is quite simple:
  1- user drags file on stack
  2- user adds some mandatory info about the files
  3- files get copied
 
  (2) is causing the problems, probably because I don't have my head
 wrapped
  around LC completely (though I do feel more comfortable more and more)
 
 ___
 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: revCopyFile slow?

2011-04-14 Thread Maarten Koopmans
Actually, the below functions work pretty fast on Win7 (will test on OS X).
Added them as a back script works nicely. Credit where credit is due,
the fileSize function I grabbed from the mailing list (weird that such a
thing is not readily available)

function fileSize pFilePath
   -- split the file path into the folder and url-encoded file name
   local tFolder, tEncodedFile
   set the itemDelimiter to slash
   put item 1 to -2 of pFilePath into tFolder
   put urlEncode(item -1 of pFilePath) into tEncodedFile
   set the itemDelimiter to comma
   -- now change the defaultfolder and get the detailed files information
   local tOldDefaultFolder, tDetailedFiles
   put the defaultFolder into tOldDefaultFolder
   set the defaultFolder to tFolder
   put the detailed files into tDetailedFiles
   set the defaultFolder to tOldDefaultFolder
   -- filter down the list to just the file we're interested in
   filter tDetailedFiles with (tEncodedFile  ,*)
   return (item 2 of tDetailedFiles + item 3 of tDetailedFiles)
end FileSize

on copyFile source,destination
   --revCopyFile source,destination
   put fileSize(source) into theSize
   open file source for binary read
   open file destination for binary write

   put 16384 into buflen

   repeat until  theSize is 0
  if theSize 16384 then put 16384 into buflen
  read from file source for  buflen
  write it to file destination
  subtract buflen from theSize
  put theSize into buflen
   end repeat

  close file source
  close file destination
end copyFile

On Sun, Apr 10, 2011 at 4:57 PM, Mike Bonner bonnm...@gmail.com wrote:

 For shell windows showing look at the property hideConsoleWindows

 If you're worried about shell blocking, could do your file management stuff
 as a process instead.

 Syntax:
 open process appName [for [text|binary] {read | write | update | neither}]

 Haven't done much with open process myself, but can probably do what you
 want that way.

 On Sun, Apr 10, 2011 at 8:49 AM, Maarten Koopmans 
 maarten.koopm...@gmail.com wrote:

  I'll try the command shell, I hope the command window doesn't show.
  Blocking behavior is another fear ( why revCopyFile is unacceptable).
 
  Thanks for all the hints and advice everybody!
 
  --Maarten
 
  On Sunday, April 10, 2011, Jim Ault jimaultw...@yahoo.com wrote:
   On Apr 10, 2011, at 5:31 AM, Mark Schonewille wrote:
  
   Maarten,
   That depends on many factors. I have been in situations where writing a
  few tens of thousands of files too hours using read/write, while using
 the
  shell command took a few minutes. I have also been in situations where
  read/write was actually the preferred method. If it is about speed,
 though,
  I'd go with the command line. You can do the benchmarking if it really
  matters to you.
  
  
   And if you program your progress bar to show
   movie trailers, sports highlights, or car crashes,
   the user won't mind so much if the file writing process is slower.
  
   Jim Ault
   Las Vegas
  
  
   On 10 apr 2011, at 14:14, Maarten Koopmans wrote:
  
  
   Really?  Ever benchmarked open, read, write on files? How slow are
 they?
  
  
  
  
  
  
  
   ___
   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: Free LiveCode eBook

2011-04-14 Thread Maarten Koopmans
Thanks!

On Friday, April 15, 2011, Colin Holgate co...@verizon.net wrote:

 On Apr 15, 2011, at 12:59 AM, Scott McDonald wrote:

 It's free and you can get it here:

 http://www.runrevplanet.com/free-downloads.html


 Thanks. I put it onto my iPad too, it looks good in iBooks.


 ___
 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: revCopyFile slow?

2011-04-10 Thread Maarten Koopmans
Yes, but a simple rev implementation should be as fast and
cross-platform (windows Mobile.)

On Sunday, April 10, 2011, Web Admin Himalayan Academy ka...@hindu.org wrote:
  On 4/8/11 6:25 AM, Maarten Koopmans wrote:

 I'll just write a copyfile function in LC then. That should be near-C
 speed, assuming open/read/write are implemented close to the os.

 Thanks, Maarten

 I would second Mark's option to use shell, I have a complete in-house version 
 control system for InDesign files that runs pretty much entirely using cp and 
 mv  .

 These all run about as fast as the network and disk I/0 can handle...

 e.g.

 command Checkout pFileName

    CheckServerIsMounted

    if the uServerMounted of this stack  true then
       answer  Sorry, Server is not mounted, you cannot check out files. 
 with OK
       exit to top
    end if
    # Make a copy in Versions Archive
    put (the uServerProjectPath of this stack) / pFileName into 
 tCurrentLocationPath
    put tCurrentLocationPath into tArchivePath
    set the itemDelimiter to /
    put /Versions Archive after item 5 of tArchivePath
    put (cp   quote  tCurrentLocationPath  quote   quote  
 tArchivePath  quote) into tShell
    get shell (tShell)

    # update Control string and rename the top level file

    put the uUserInitials of this stack into char -7 to -6 of pFileName
    replace -ci- with -co- in pFileName
    put (the uServerProjectPath of this stack) / pFileName into 
 tNewNamePath
    put (mv   quote  tCurrentLocationPath  quote   quote  
 tNewNamePath  quote) into tShell
    get shell (tShell)

         # Copy to local folder
      put gLocalProjectPath / pFileName into tNewLocalPath
    put (cp   quote  tNewNamePath  quote   quote  tNewLocalPath  
 quote) into tShell
    get shell (tShell)

       # update GUI now

    LoadVersionFiles gCurrentProject

    # boot InDesign and edit

    launch (tNewLocalPath) with (the uInDesignPath of this stack)  # expand to 
 handle other file types


 end Checkout

 ___
 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: socket handling/libURL changed between 4.0 and 4.6?

2011-04-10 Thread Maarten Koopmans
Off note: if you have a client webdav library, I'd be very interested.
Please contact me (off list if that works better fo you).

Best, Maarten

On Sunday, April 10, 2011, Web Admin Himalayan Academy ka...@hindu.org wrote:
  Better push this one to a ticket in the QA center with a sample stack.

 On 4/9/11 9:23 AM, Bernard Devlin wrote:

 I have some very simple code that works in 4.0 (on both Linux and
 Windows), but which fails on 4.6.  The code posts XML to a webserver
 and now fails on both Linux and Windows using 4.6.  It is making
 PROPFIND requests to a webdav server.  But fundamentally it is just
 HTTP request/response, and should work in 4.6 just as it works in 4.0.

 The problem manifests itself as a socket timeout on 4.6, but there is
 not timeout on 4.0.  The normal response times from the server are in
 a sub-4000 ms range, but even if I set the socketTimeoutInterval to
 3 ms, the code fails with a socket timeout. Reverting back to 4.0,
 and the same code works in a sub-4000 ms range with no timeout.

 on mouseUp
     resetAll
     put fld request into tXml
     libURLSetCustomHTTPHeaders (fld headers)  -- headers contains
 PROPFIND method
     put http://192.168.0.202:1980/; into tURL
     try
        wait 50 milliseconds with messages
        post tXml to URL tURL
     catch tError
        put error  tError
     finally
        put the long time  cr  it  cr  the result into fld response
        put the long time  cr   libUrlLastRhHeaders() into fld 
 ResponseHeaders
     end try
 end mouseUp

 The server has not changed, and I've tried alternatiing repeatedly
 between 4.0 and 4.6, and the problem is there consistently with 4.6
 and not at all with 4.0.

 I see in 4.5 there was a change to DNS resolution, so I tried adding a
 manual entry to my hosts file, but even though a browser can resolve
 the ip address from the hostname, Livecode still fails. With
 Revolution 4.0, it works with either IP address or a hostname resolved
 via lookup to the hosts file.

 I also put a HTTP inspector between the IDE and the server.  After
 setting the httpProxy, with 4.0 I can intercept the calls to the
 server and view them; but with 4.6 they do not even reach the HTTP
 inspector.

 I tried setting up libURL logging using:

   libUrlSetLogField (field  quote  LogField  quote)

 but it didn't make any difference - logging doesn't seem to work on 4.0 or 
 4.6.

 I tried putting breakpoints inside the libURL handlers themselves, but
 they never seem to get triggered - not even on 4.0 where the post to
 URL is working.  Is there something I'm missing in how one should be
 able to step into the libURL code?

 Bernard Devlin

 ___
 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: revCopyFile slow?

2011-04-10 Thread Maarten Koopmans
Really?  Ever benchmarked open, read, write on files? How slow are they?

On Sunday, April 10, 2011, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 Cross-platform yes, fast no.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 New: Download the Installer Maker Plugin 1.6 for LiveCode here 
 http://qery.us/ce

 On 10 apr 2011, at 13:36, Maarten Koopmans wrote:

 Yes, but a simple rev implementation should be as fast and
 cross-platform (windows Mobile.)


 ___
 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: revCopyFile slow?

2011-04-10 Thread Maarten Koopmans
I'll try the command shell, I hope the command window doesn't show.
Blocking behavior is another fear ( why revCopyFile is unacceptable).

Thanks for all the hints and advice everybody!

--Maarten

On Sunday, April 10, 2011, Jim Ault jimaultw...@yahoo.com wrote:
 On Apr 10, 2011, at 5:31 AM, Mark Schonewille wrote:

 Maarten,
 That depends on many factors. I have been in situations where writing a few 
 tens of thousands of files too hours using read/write, while using the shell 
 command took a few minutes. I have also been in situations where read/write 
 was actually the preferred method. If it is about speed, though, I'd go with 
 the command line. You can do the benchmarking if it really matters to you.


 And if you program your progress bar to show
 movie trailers, sports highlights, or car crashes,
 the user won't mind so much if the file writing process is slower.

 Jim Ault
 Las Vegas


 On 10 apr 2011, at 14:14, Maarten Koopmans wrote:


 Really?  Ever benchmarked open, read, write on files? How slow are they?







 ___
 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


revCopyFile slow?

2011-04-08 Thread Maarten Koopmans
Hi,

I just started using revCopyFile, and well, on my Mac it felt. slow.
Is that normal? Any faster way to do it - or just write my own in2out file
copy?

--Maarten
___
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: revCopyFile slow?

2011-04-08 Thread Maarten Koopmans
I'll just write a copyfile function in LC then. That should be near-C
speed, assuming open/read/write are implemented close to the os.

Thanks, Maarten

On Friday, April 8, 2011, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 Hi Maarten,

 Yes, it is slow, because the underlying AppleScript needs to be compiled 
 every time it is used. For big files, it might be useful, but if you have to 
 copy many small files, it is a disaster. The safest and quickes option is 
 probably to use the cp shell command.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 New: Download the Installer Maker Plugin 1.6 for LiveCode here 
 http://qery.us/ce

 On 8 apr 2011, at 17:38, Maarten Koopmans wrote:

 Hi,

 I just started using revCopyFile, and well, on my Mac it felt. slow.
 Is that normal? Any faster way to do it - or just write my own in2out file
 copy?

 --Maarten



 ___
 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: Fit a card to PDF

2011-04-04 Thread Maarten Koopmans
Duh
http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/29177-How-to-create-PDFs-using-LiveCode

On Mon, Apr 4, 2011 at 4:16 PM, Maarten Koopmans maarten.koopm...@gmail.com
 wrote:

 Hi,

 I have a card of r.g. 1024x768 that I print to pdf (awesome) but it
 only shows partially; a matter of scaling. How do you scale the printing of
 your card to a PDF so that it precisely maps to say, an A4 PDF?

 --Maarten

___
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: DELETE, PUT http

2011-04-04 Thread Maarten Koopmans
On Monday, April 4, 2011, Dave Cragg dave.cr...@lacscentre.co.uk wrote:

 On 4 Apr 2011, at 13:36, Trevor DeVore wrote:

 On Sun, Apr 3, 2011 at 3:50 AM, Maarten Koopmans maarten.koopm...@gmail.com
 wrote:

 I there a way to have LIvecode do PUT and DELETE via http/https,
 hopefully witj digest authentication? So you can use the UI tools to
 integrate with REST services? I see great chanches here :-)


 PUT and DELETE arel supported by libURL.

 Now I feel embarrassed. :-)

 Please ignore my earlier mail. Don't know what I was thinking.

 The only comment I can add is that PUT and DELETE for http were never 
 extensively tested when added to libUrl. This was because so few http servers 
 support these commands. The Method not allowed response that Trevor shows 
 in his other mail is typical for most servers.


But put and delete are very handy when you have a rest service,
especially when you control the web service :-)

Thanks, Maarten

___
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: OAuth, dropbox

2011-04-04 Thread Maarten Koopmans
Hi Mark,

That still requires oauth, but more importantly, it's not supported by
dropbox yet. Guess I'll have to write my own SDK.

--Maarten

On Monday, April 4, 2011, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 Hi Maarten,

 If you can't use an SDK, you can still resort to the web api.
 https://www.dropbox.com/developers/web_docs
 This should work from within revBrowser for example.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 New: Download the Installer Maker Plugin 1.6 for LiveCode here 
 http://qery.us/ce

 On 4 apr 2011, at 19:28, Maarten Koopmans wrote:

 Hi,

 The downside of Livecode is that I haven't found an OAuth library,
 where I can build dropbox integration on top of. Think downloading
 files from dropbox to your iOS device or so.

 Has anybody already started this journey, bevause it looks like there
 are dragons if you can't use a SDK.

 Thanks,

 Maarten


 ___
 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: Editable page

2011-04-03 Thread Maarten Koopmans
I want users to be able to put a limited set of controls, like images,
shapes, text, backdrop on a page. I have noticed that the size events,
the choose [...] tool, drag me in mouseUp, go a long way. Things
like resizing, setting the fonts etc. also look feasible. So a simple
toolbar, te choose tool command and lockimg of some core objects
(mainly the ones that control the toolbar)... Looks like it will get
me there.

I posted a similar question to the forum and got a sample stack that
put me on the right track - normally I don't cross-post but the
use-livecode list seemed a bit more active.

--Maarten

On Saturday, April 2, 2011,  dunb...@aol.com wrote:
 LiveCode is more than powerful and flexible enough to do what you want. 
 Simple, to boot.


 The problem is that you might give away too much control, so that the whole 
 app could be trashed by your users since you either have to give access to 
 IDE tools, or permit only choices from a menu of properties, say. 
 Fortunately, you can lock the core objects.


 Do you want to give just a limited, preset number of options to the user when 
 a new control is created, or allow all properties to be adjusted? If the 
 former, I can think of a few cute gadgets that would be fun to implement. 
 Write back...


 Craig Newman





 -Original Message-
 From: Maarten Koopmans maarten.koopm...@gmail.com
 To: use-livecode@lists.runrev.com use-livecode@lists.runrev.com
 Sent: Sat, Apr 2, 2011 5:25 am
 Subject: Editable page


 Hi,

 I have a stack where I want the user to be able to add objects ((e.g.
 images, lines, text). I can set the tool to [ ... ]. Think an
 editable page. But my problem then is (let's take an image for
 example):

 - how do I make it so that the user can add an image to the placeholder
 - move the image
 - resize it

 Same for lines, texts, ... any ui element, really - I am trying to
 create a mock-up tool.

 My thoughts were be that I:

 a) have the user add the object to the the stack
 b) dynamically attach handlers to the newly created object that
 implement any desired object-specific behavior (i.e. move. (reset
 image source, crop, ...)

 How do I add the handlers dynamically (I really haven't been able to
 find it), and moreover, where do I store these templates in the
 overall stack.

 I think I haven't wrapped my head around the LiveCode model to do
 these more dynamic things, *any* help would be greatly appreciated!!!

 Thanks, Maarten

 ___
 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


The LC way for code libraries?

2011-04-03 Thread Maarten Koopmans
Hi,

Simple question for people here, but something you wonder when you
come from a non-LC code environment.

What's a good way to create and store a non-UI code library in a LC
project (a.k.a. business logic)? Say I'd want to implement a WebDAV
client, which is a back-and-forth kind of flow. Or anu other protocol
will do as a mental model

 Where would you store all the support functions for the protocol?
Right now I can only see this happening on the stack level, but there
I'm still fairly clueless.

Thanks,

Maarten

___
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


DELETE, PUT http

2011-04-03 Thread Maarten Koopmans
Hi,

I there a way to have LIvecode do PUT and DELETE via http/https,
hopefully witj digest authentication? So you can use the UI tools to
integrate with REST services? I see great chanches here :-)

Suddenly firing a lot of questions, because after years of using
LC/runrev for small things I want to do some more heavy lifting.
Coming from a Scala/Scheme/Rebol background I get the event model, but
I need to learn some library tricks (as with any new language) and get
a model of how to do some larger scale programming. So far, things
look pretty good with LC. Once I get it compketely into my system I'll
start really using the mobile version as wel. But... Step at a time.

Thanks (again),

Maarten

___
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: The LC way for code libraries?

2011-04-03 Thread Maarten Koopmans
Thanks Missed that in plowing through all the
dics/dictionary/getting my head around LC

--Maarten

On Sunday, April 3, 2011, John Dixon dixo...@hotmail.co.uk wrote:




 From: maarten.koopm...@gmail.com

 Simple question for people here, but something you wonder when you
 come from a non-LC code environment.

 What's a good way to create and store a non-UI code library in a LC
 project (a.k.a. business logic)? Say I'd want to implement a WebDAV
 client, which is a back-and-forth kind of flow. Or anu other protocol
 will do as a mental model

  Where would you store all the support functions for the protocol?
 Right now I can only see this happening on the stack level, but there
 I'm still fairly clueless.

 Have a look at page 166 of the 'User Guide' ... all about creating code 
 libraries

 be well

 Dixie

 ___
 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: The LC way for code libraries?

2011-04-03 Thread Maarten Koopmans
Thanks, that was very insightful.

On Sunday, April 3, 2011, Richard Gaskin ambassa...@fourthworld.com wrote:
 Maarten Koopmans wrote:


 What's a good way to create and store a non-UI code library in a LC
 project (a.k.a. business logic)? Say I'd want to implement a WebDAV
 client, which is a back-and-forth kind of flow. Or anu other protocol
 will do as a mental model

  Where would you store all the support functions for the protocol?
 Right now I can only see this happening on the stack level, but there
 I'm still fairly clueless.


 If you think you'll be using such a library in other projects you'll 
 definitely have an easier time reusing it as a library.

 You could embed the library as a substack, but then keeping it updated every 
 time you enhance it is a drag, so I tend to prefer to keep libraries in their 
 own stack files, loaded at startup from a folder named Components I keep at 
 the same level as the executable.

 This article may help you get started if you haven't read it already:
 http://www.fourthworld.com/embassy/articles/revolution_message_path.html

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

 ___
 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: DELETE, PUT http

2011-04-03 Thread Maarten Koopmans
Hoi Mark,

I'll have to add that myself then

--Maarten

On Sunday, April 3, 2011, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 Hoi Maarten,

 POST and GET are supported. PUT and DELETE are not. Use LC's put url command 
 to send data using the GET method. Use the post url command to send data 
 using the POST method.

 POST example:
 put x=1y=2 into myData
 post myData to url http://domain.com/bla.php;

 GET example:
 put http://domain.com/bla.php?x=1y=2; into myUrl
 put url myUrl into myDataReturned

 Keep in mind that the put command in the second line of the last example 
 has nothing to do with the PUT method used to connect to PHP (or iRev for 
 that matter).

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 New: Download the Installer Maker Plugin 1.6 for LiveCode here 
 http://qery.us/ce

 On 3 apr 2011, at 16:14, Richard Gaskin wrote:

 Maarten Koopmans wrote:

 I there a way to have LIvecode do PUT and DELETE via http/https,
 hopefully witj digest authentication? So you can use the UI tools to
 integrate with REST services? I see great chanches here :-)

 PUT is well supported in addition to GET - check out the entry for PUT 
 in the dictionary.

 AFAIK DELETE is only natively supported for FTP, but I would love to be 
 wrong on that if anyone here knows otherwise.


 Suddenly firing a lot of questions, because after years of using
 LC/runrev for small things I want to do some more heavy lifting.
 Coming from a Scala/Scheme/Rebol background I get the event model, but
 I need to learn some library tricks (as with any new language) and get
 a model of how to do some larger scale programming.

 My dream would be to see Rebol offered as a subsystem within LiveCode, so we 
 get the best of both worlds:  LC's rich GUI model with Rebol's unmatched 
 extensibility.

 --
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv


 ___
 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


Editable page

2011-04-02 Thread Maarten Koopmans
Hi,

I have a stack where I want the user to be able to add objects ((e.g.
images, lines, text). I can set the tool to [ ... ]. Think an
editable page. But my problem then is (let's take an image for
example):

- how do I make it so that the user can add an image to the placeholder
- move the image
- resize it

Same for lines, texts, ... any ui element, really - I am trying to
create a mock-up tool.

My thoughts were be that I:

a) have the user add the object to the the stack
b) dynamically attach handlers to the newly created object that
implement any desired object-specific behavior (i.e. move. (reset
image source, crop, ...)

How do I add the handlers dynamically (I really haven't been able to
find it), and moreover, where do I store these templates in the
overall stack.

I think I haven't wrapped my head around the LiveCode model to do
these more dynamic things, *any* help would be greatly appreciated!!!

Thanks, Maarten

___
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