iCloud with current version of LC and iOS7

2014-07-10 Thread Matthias Rebbe | M-R-D
Hi, is anyone using iCloud in an LC app for iOS 7? I need to add iCloud support to an iOS app. Regards, Matthias ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscrip

Re: iCloud with current version of LC and iOS7

2014-07-10 Thread Guglielmo Braguglia
Hi Matthias, I remember only this announcement : http://runtime-revolution.278305.n4.nabble.com/ANN-Livecode-iCloud-iOS-external-td4653404.html but ... the Maarten Koopmans web site ... does not seem to exist anymore :( Guglielmo Matthias Rebbe | M-R-D wrote: Hi, is anyone using iCloud in

Re: [on-rev] libURL and https

2014-07-10 Thread Simon Smith
They could be blocking something their side - but I also think they dont run the latest version of LC Server. Probably best to contact their support staff. On Thu, Jul 10, 2014 at 2:16 AM, Scott Morrow wrote: > Thanks Simon, > Unfortunately, that is what I’m doing now except that it fails fro

Re: iCloud with current version of LC and iOS7

2014-07-10 Thread Matthias Rebbe | M-R-D
Am 10.07.2014 um 12:22 schrieb Guglielmo Braguglia : > Hi Matthias, > > I remember only this announcement : > http://runtime-revolution.278305.n4.nabble.com/ANN-Livecode-iCloud-iOS-external-td4653404.html > but ... the Maarten Koopmans web site ... does not seem to exist anymore :( > > Gugli

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
I think I have found the cause of the issue, now I need to figure out how to solve it. The regex pattern I am looking for appears in other lines because there is a description field that lists "related parts." The one consistency I have is that the pattern I am comparing to should be looking only

Re: Problem with filter and regex

2014-07-10 Thread John Craig
Which item delimiter are you using? For example, if it's a TAB, maybe you can specify a pattern ending with a tab, but disallowing any further tabs.. On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote: I think I have found the cause of the issue, now I need to figure out how to solv

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
I am reading the data from a datagrid into a variable before applying the filter so it would be a TAB delimiter. On Thu, Jul 10, 2014 at 9:52 AM, John Craig wrote: > Which item delimiter are you using? For example, if it's a TAB, maybe you > can specify a pattern ending with a tab, but disallo

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
I additionally noticed that if my search term is b108 it also pulls over b108-option1, b108-option2, etc. I need it to only filter b108 and not those other items. On Thu, Jul 10, 2014 at 10:05 AM, Magicgate Software - Skip Kimpel < s...@magicgate.com> wrote: > I am reading the data from a datag

Re: Problem with filter and regex

2014-07-10 Thread Charles E Buchwald
So... ^yourregexpattern\t ^ is the start of line marker \t is the (usual) regex for a tab character - Charles On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel wrote: > I am reading the data from a datagrid into a variable before applying the > filter so it would be a TAB delimiter.

Re: [on-rev] libURL and https

2014-07-10 Thread Richard Gaskin
Is libURL available at all with LiveCode Server? On the desktop it's a backscript that gets included in our standalones at build time. Where is it with LiveCode Server? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode develop

Re: Problem with filter and regex

2014-07-10 Thread Charles E Buchwald
OK, then how about this: ^[a-z]\d+ That translates as... start of line, plus 1 alphabetic character, plus one or more digits. - Charles On 10 Jul 2014, at 10:06 AM, Magicgate Software - Skip Kimpel wrote: > I additionally noticed that if my search term is b108 it also pulls over > b108-option1

formattedWidth

2014-07-10 Thread Peter Haworth
I recently posted about how to adjust the size of different cards within a stack and part of the solution I tried was using the formattedWidth and formattedHeight properties (actually the effective versions of them). I'm now seeing that the formattedWidth (and probably formattedHeight) return very

Re: Problem with filter and regex

2014-07-10 Thread Peter Haworth
I think adding the tab at the end of the pattern will ensure this works, so: ^[a-z]\d+\t Somewhat depends on exactly what he's looking for with the regex but the important part is the ^ and the \t with the rest being dependent on the format of what he's looking for. Pete lcSQL Software

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
The problem is that the item does not always start with either a number or a letter... it can be different every time. So I am thinking the ^yourregexpattern\t method is the way to go... I will try it out and let you know! SKIP On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald wrote: > So.

Re: formattedWidth

2014-07-10 Thread Scott Rossi
I'm still not quite clear on what you're trying to accomplish. If you want to size a stack to the rect of all visible elements on a card, you need to check the extents of those objects -- the right-most and bottom-most edges -- not the space they occupy with formattedWidth or height. If I underst

Re: Conflicting paths

2014-07-10 Thread Richmond
I have a wobbly hand: or wobbly enough that I cannot draw an oval graphic to use as a path in a stack that doesn't look horrible. Does anybody have any tips on how to make an oval path with points [that means, before you all rush to point something out, that the oval object is no use at all] th

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
It is still thinking that AP6003 and AP60003BF are the same... I am using: filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp (where tRegexp=AP6003) Hm... On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel < s...@magicgate.com> wrote: > The problem is tha

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
And once gain, it appears to be because AP600BF includes in it's line description "AP6003 is a replacement part for" So it is still getting confused. On Thu, Jul 10, 2014 at 1:45 PM, Magicgate Software - Skip Kimpel < s...@magicgate.com> wrote: > It is still thinking that AP6003 and AP60003

Re: formattedWidth

2014-07-10 Thread Richmond
On 10/07/14 20:07, Peter Haworth wrote: Is there some other property that can be used to set the width of a stack to something that really does include all the objects on it? My extremely primitive recipe to do just that is here: http://forums.livecode.com/viewtopic.php?f=7&t=21023 Richm

Re: Problem with filter and regex

2014-07-10 Thread Charles E Buchwald
Hi SKIP, Now I'm confused! I usually start a thorny programming problem by trying to state the logic in plain English. Would either of the following phrases properly filter your data if it could be expressed as regex? the first item of a line, which begins with a letter or number, but always h

Re: Problem with filter and regex

2014-07-10 Thread Peter Haworth
Hi Skip, I just tried your code in a test stack using LC 6.6.2 The data I used was: AP6003xyz AP6003BFReplacement for AP6003 AP6003XYdef Only line 1 was selected. It's possible I'm misinterpreting the way your data is laid out. Are you sure that tRegExp has "AP6003" in it? And that your data

RE: formattedWidth

2014-07-10 Thread Ralph DiMola
Peter, I have observed this since the new field control was introduced in 5.somthing. I have to keep adjusting my code to take into account for minor changes as new LC versions get released. I have submitted a bug report. http://quality.runrev.com/show_bug.cgi?id=12176 Check out the demo stack. Th

Re: Problem with filter and regex

2014-07-10 Thread Peter Haworth
You could also do this without using a regexp: filter tdg2Text with (tRegExp & tab & "*") into field "Field2" Just in case there's something weird happening with the regexp Pete lcSQL Software Home of lcStackBrowser and SQLite

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Hi SCott, Yes, I'm currently doing what you suggest by looking at all the controls on the card. What I don't understand is why the formattedWidth of a card doesn't return what's described in the dictionary. It appears to simply return the width of the widest control on the card when what it shoul

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Thanks Richmond, that's essentially what I'm doing except I use the rectangle of the stack instead of the height and width so the stack position doesn't change. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin

Re: formattedWidth

2014-07-10 Thread Richmond
I have just uploaded a newer version of my stack: http://forums.livecode.com/viewtopic.php?f=7&t=21023&p=107288#p107288 and I cannot for the life of me understand why the formattedWidth of the card does not correspond to item 1 of the loc of the 'furthest West' control, or its LEFT. Richmond.

Re: formattedWidth

2014-07-10 Thread Scott Rossi
I think you meant the formattedRect property, not formattedWidth. If you check the formattedRect property, you should be able to get right/bottom positions you want without looping through the card objects. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/10/14 12:02 P

Re: formattedWidth

2014-07-10 Thread Scott Rossi
FormattedWidth and height are purely width and height measurements. They don't provide object any position information. For object positions, use either the rect or formattedRect (cards/groups) properties. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/10/14 12:12 P

Re: [on-rev] libURL and https

2014-07-10 Thread Simon Smith
Does not look like it is part of LC Server, perhaps its still to come? On Thu, Jul 10, 2014 at 5:18 PM, Richard Gaskin wrote: > Is libURL available at all with LiveCode Server? > > On the desktop it's a backscript that gets included in our standalones at > build time. > > Where is it with LiveC

Re: [on-rev] libURL and https

2014-07-10 Thread Scott Morrow
The docs show “server” as one of the supported platforms for libURL functions. However, my on-rev setup always produces an error when trying to use them. (Tested with server engine 3.5 and 6.5) — Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
MYSTERY SOLVED The previous code DID IN FACT WORK: filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp The Problem? What was showing on screen was correct... when I went to output the file, I was not using the same regex pattern. Whoops Thanks to all for helping out!

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Oh yes, plus ignoring hidden controls Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jul 10, 2014 at 12:05 PM, Peter Haworth wrote: > Thanks Richmond, that's essentiall

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Thanks Scott. formattedRect doesn't quite work on its own because it positions the stack at the top left of the screen. However you put me on the right track because I can use the measurements in it to set the correct rectangle. Pete lcSQL Software Home of lcStackBrowser

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Yes, I think the problem is with the dictionary entry for formattedWidth since it claims the formattedWidth of a card is the rectangle that contains all its visible objects, which is not true. Pete lcSQL Software Home of lcStackBrowser

Re: formattedWidth

2014-07-10 Thread Scott Rossi
Actually, the dictionary entry is correct. The property gets the width of a rectangle that encompasses all visible objects, not the rect of the objects. Horse = beaten yet? :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/10/14 2:49 PM, "Peter Haworth" wrote: >

Re: formattedWidth

2014-07-10 Thread J. Landman Gay
So it's "all the visible parts of all objects". If some of an object is offscreen, that part isn't visible. Beaten but not yet dead. ;) On 7/10/2014, 5:52 PM, Scott Rossi wrote: Actually, the dictionary entry is correct. The property gets the width of a rectangle that encompasses all visible

Re: Conflicting paths

2014-07-10 Thread Paul Hibbert
Richmond, Maybe you could use Bernd's stack to trace an oval image. Link from a previous post… http://forums.runrev.com/phpBB2/viewtopic.php?t=19040&p=96086#p96086 Paul On 2014-07-10, at 10:43 AM, Richmond wrote: > I have a wobbly hand: or wobbly enough that I cannot draw > an oval gr

Re: Conflicting paths

2014-07-10 Thread J. Landman Gay
On 7/10/2014, 12:43 PM, Richmond wrote: I have a wobbly hand: or wobbly enough that I cannot draw an oval graphic to use as a path in a stack that doesn't look horrible. Does anybody have any tips on how to make an oval path with points [that means, before you all rush to point something out, t

Dragging an object

2014-07-10 Thread Peter Bogdanoff
Hi, I want to drag an object around (a group), restricting its Y coordinate (set to be a property, “yLocation"). I’m using this script inside the object: on mouseMove if the mouse is down then set the loc of me to (item 1 of the mouseLoc,the yLocation of me) end if end mouseMove How

Re: Dragging an object

2014-07-10 Thread Roger Eller
This really old info from the archives might help. https://www.mail-archive.com/use-revolution%40lists.runrev.com/msg10273.html On Jul 10, 2014 8:24 PM, "Peter Bogdanoff" wrote: > Hi, > > I want to drag an object around (a group), restricting its Y coordinate > (set to be a property, “yLocation

Re: Conflicting paths

2014-07-10 Thread Walt Brown
Here's a quickie stack I wrote after reading Richmond's email, which creates a set of points in an oval and then sends a planet around. The oval can be set to width (k), height (h), and angle (theta). Written in 5.5.5. Embedded in it is a stack script which contains the angled ellipse calculation x

Re: formattedWidth

2014-07-10 Thread Peter Haworth
OK, I surrender! I think I now understand my confusion. The formattedWidth of a card is measured from the left edge of the leftmost control to the right edge of the rightmost control. But the distance from the left edge of the card to the leftmost control isn't included so using formattedwidth t

Re: Dragging an object

2014-07-10 Thread Jim Hurley
> > Message: 19 > Date: Thu, 10 Jul 2014 17:24:16 -0700 > From: Peter Bogdanoff > To: How to use LiveCode > Subject: Dragging an object > Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com> > Content-Type: text/plain; charset=windows-1252 > > Hi, > > I want to drag an object around (a gr

Re: Dragging an object

2014-07-10 Thread Peter Bogdanoff
That doesn’t seem to be good for my immediate challenge—I’m able to restrict the motion to horizontal OK. It’s getting the control to move smoothly no matter where on it you click. On Jul 10, 2014, at 5:54 PM, Roger Eller wrote: > > On Jul 10, 2014 8:24 PM, "Peter Bogdanoff" wrote: > >> Hi,

Re: Dragging an object

2014-07-10 Thread Peter Bogdanoff
Thanks, I’ll try it. pb On Jul 10, 2014, at 7:01 PM, Jim Hurley wrote: >> >> Message: 19 >> Date: Thu, 10 Jul 2014 17:24:16 -0700 >> From: Peter Bogdanoff >> To: How to use LiveCode >> Subject: Dragging an object >> Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com> >> Content-Type: t

Re: Dragging an object

2014-07-10 Thread Peter Bogdanoff
YES! I knew I had to get that separation figured out and applied, but the logic was stumping me. Thanks! Peter On Jul 10, 2014, at 7:01 PM, Jim Hurley wrote: >> >> Message: 19 >> Date: Thu, 10 Jul 2014 17:24:16 -0700 >> From: Peter Bogdanoff >> To: How to use LiveCode >> Subject: Dragging

Re: formattedWidth

2014-07-10 Thread Dr. Hawkins
On Thu, Jul 10, 2014 at 6:32 PM, Peter Haworth wrote: > But the distance from > the left edge of the card to the leftmost control isn't included so using > formattedwidth to size the card will never work unless the leftmost control > is at the left edge of the card. > It will also not work if th

Re: Conflicting paths

2014-07-10 Thread Mark Wieder
Jacque- Thursday, July 10, 2014, 5:10:40 PM, you wrote: > Mark Wieder recently added points to the standard graphic objects. But > until that gets into the engine, I can't think of an easy way to create > them. That should be in the next release of LC 6.7. Ovals aren't included yet because I had

Re: Dragging an object

2014-07-10 Thread Richmond
On 11/07/14 03:24, Peter Bogdanoff wrote: I tried using the grab command, but I couldn’t seem to be able to restrict the Y coordinate with that. on mouseDown grab me end mouseDown on mouseUp set the moveSpeed to 65000 put item 2 of the loc of me into LCK move me to ZZZ, LCK en

Re: Conflicting paths

2014-07-10 Thread Richmond
On 11/07/14 04:08, Walt Brown wrote: Here's a quickie stack I wrote after reading Richmond's email, which creates a set of points in an oval and then sends a planet around. The oval can be set to width (k), height (h), and angle (theta). Written in 5.5.5. Embedded in it is a stack script which co

Re: Conflicting paths

2014-07-10 Thread Walt Brown
Sorry, I wasn't aware that attachments didn't follow thru. See if this works: https://www.dropbox.com/s/xxdfiuvzlblweoe/wbOvalOrbiter.zip On Fri, Jul 11, 2014 at 1:15 AM, Richmond wrote: > On 11/07/14 04:08, Walt Brown wrote: > >> Here's a quickie stack I wrote after reading Richmond's email,

Re: Conflicting paths

2014-07-10 Thread Scott Morrow
Nice! — Scott Morrow On Jul 10, 2014, at 10:27 PM, Walt Brown wrote: > Sorry, I wasn't aware that attachments didn't follow thru. See if this > works: > > https://www.dropbox.com/s/xxdfiuvzlblweoe/wbOvalOrbiter.zip > > > On Fri, Jul 11, 2014 at 1:15 AM, Richmond > wrote: > >> On 11/07/14 0

Re: Conflicting paths

2014-07-10 Thread Mike Bonner
This is similar to walts, but doesn't handle angles. It sets the points of a preexisting line grc. Just hated not to post it after figuring it out, but stick with walts. Heres the quicky code anyway.. local sxOffset,syOffset,sSegments,sxradius,syRadius constant totalRadians=6.283185 on mouseUp

Re: Conflicting paths

2014-07-10 Thread Mike Bonner
oops, didn't put the -- on a couple of comments, but should be decipherable. DOH On Thu, Jul 10, 2014 at 11:54 PM, Mike Bonner wrote: > This is similar to walts, but doesn't handle angles. It sets the points > of a preexisting line grc. Just hated not to post it after figuring it > out, but s