Re: What speed advantage comes from a private handler?

2016-11-08 Thread Monte Goulding
> On 9 Nov. 2016, at 12:44 pm, Phil Davis wrote: > > function app_helperAppPath pAppName >dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName >return the result > end app_helperAppPath > > > function _helperAppPath_MacOS pAppName >-- Mac-specific app path dis

Re: What speed advantage comes from a private handler?

2016-11-08 Thread Phil Davis
Actually here's another situation where I've used 'dispatch' simply to avoid a 'do'. But I could as easily use 'send' to get the job done: function app_helperAppPath pAppName dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName return the result end app_helperApp

Re: What speed advantage comes from a private handler?

2016-11-08 Thread Monte Goulding
> On 9 Nov. 2016, at 12:23 pm, Phil Davis wrote: > > Use case: You use 'dispatch' as a coding style preference. > > (That's all I could come up with.) ;-) Actually thinking on it I can imagine a use case but it fails if you are wanting to dispatch a private handler: dispatch “SomethingOverr

Re: What speed advantage comes from a private handler?

2016-11-08 Thread Phil Davis
Use case: You use 'dispatch' as a coding style preference. (That's all I could come up with.) Phil On 11/8/16 5:00 PM, Monte Goulding wrote: On 9 Nov. 2016, at 11:52 am, Phil Davis wrote: You also can't execute a private handler with the "dispatch" command. I guess that’s true but what use

Re: What speed advantage comes from a private handler?

2016-11-08 Thread Monte Goulding
> On 9 Nov. 2016, at 11:52 am, Phil Davis wrote: > > You also can't execute a private handler with the "dispatch" command. I guess that’s true but what use case is there for dispatch within the same script? ___ use-livecode mailing list use-livecode@

Re: What speed advantage comes from a private handler?

2016-11-08 Thread Phil Davis
You also can't execute a private handler with the "dispatch" command. Phil Davis On 11/8/16 4:44 PM, Monte Goulding wrote: On 9 Nov. 2016, at 11:31 am, James Hale wrote: Can someone explain why making a handler private speeds up a script? Private handlers are called directly rather than gi

Re: What speed advantage comes from a private handler?

2016-11-08 Thread Monte Goulding
> On 9 Nov. 2016, at 11:31 am, James Hale wrote: > > Can someone explain why making a handler private speeds up a script? Private handlers are called directly rather than giving all the frontscripts a chance to handle them. > Should I be making more of my handlers private? If you only ever n

What speed advantage comes from a private handler?

2016-11-08 Thread James Hale
In a reply to a post on loop speed Mark made this aside... > the aData array (also making sure explodeRow is private will help too) Can someone explain why making a handler private speeds up a script? Should I be making more of my handlers private? Really intrigued. James __

Re: iPad Pro screenshots?

2016-11-08 Thread Colin Holgate
Ralph’s idea was good though, you could export snapshot from a card window that’s the real size. But yes, scaling up is what I’ve done as well. One thing to be wary of is having complex splash screens. You will find that if you support every required size you could reach 30 MB of app space, befo

Re: iPad Pro screenshots?

2016-11-08 Thread Alan
Thanks Ralph, Phil, Colin So the interim solution (until I upgrade my systems to get access to iPad Pro Simulator) is to take a Retina screenshot and scale up (this is to satisfy that AppStore requirements) and hope that's good enough...! :-) cheers Alan On 9 Nov 2016, at 4:03 am, wrote:

Re: property inspector lock 2

2016-11-08 Thread Mike Kerner
What I'm seeing is if I unlock the PI, then I ask for a PI on something else (say an object on a separate card), the unlocked PI becomes up locked with the new object. I did think about the location being the same, so I checked that, but no joy. Same token: If I lock the PI, it doesn't always s

Re: Lock moves is not working when objects are moved to the points of an other graphic

2016-11-08 Thread hh
Tore. Did you notice the difference in Craig's post? We can't use 'from point A to the points of' but either 'from point A to point B' or 'to the points of'. Hermann ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to s

Re: Lock moves is not working when objects are moved to the points of an other graphic

2016-11-08 Thread hh
'Lock moves' or 'set lockmoves to true' works here as it should with LC 8.1.1 and 9.0.0-dp1 on MacOS 10.12.1. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription prefer

Re: property inspector lock 2

2016-11-08 Thread stephen barncard
I've noticed that inspector windows stack perfectly on top of each other, and the 'new' inspector falls directly on top of the locked one, giving the visual feedback of being replaced, when actually the locked one is behind the new one. Some UI designs make sure 'new' windows will be offset slightl

Re: property inspector lock 2

2016-11-08 Thread Richard Gaskin
Mike Kerner wrote: > Any idea how to make the lock on the property inspector stick? If I > select the property inspector for an object and hit the lock, it does > not seem to stick. So for example, pick A. Unlock PI. Pick B. PI > is now locked. Unlock PI. Repeat - PI lock doesn't seem to sti

property inspector lock 2

2016-11-08 Thread Mike Kerner
Since the original thread was hijacked, Any idea how to make the lock on the property inspector stick? If I select the property inspector for an object and hit the lock, it does not seem to stick. So for example, pick A. Unlock PI. Pick B. PI is now locked. Unlock PI. Repeat - PI lock doesn't

Re: property inspector lock

2016-11-08 Thread J. Landman Gay
The easiest way, without a menu item, is from the message box: "clone this card". Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 8, 2016 11:36:12 AM Marc Siskin wrote: Ralph, Does typing “Copy thi

Re: Duplicating a card in v8

2016-11-08 Thread Randy Hengst
Ralph, In a button use either of these statements: copy card “ymCardToCopy" of this stack to this stack copy card "ymCardToCopy" of this to stack "DemoStack” ---assuming DemoStack stack is open be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 8, 2016, at 11:35 AM, Ra

RE: property inspector lock

2016-11-08 Thread Ralph DiMola
Sorry, I had a "hot key nightmare" and sent it with the wrong subject line. I resent with correct subject. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of

Re: property inspector lock

2016-11-08 Thread Mike Kerner
Thanks for hijacking my thread, guys. GET YOUR OWN THREAD! On Tue, Nov 8, 2016 at 12:35 PM, Marc Siskin wrote: > Ralph, > > Does typing “Copy this card to this stack” work in the message box? > > Marc > On Nov 8, 2016, at 12:33 PM, Ralph DiMola mailto:rdim...@evergreeninfo.net>> wrote: > > How

Re: property inspector lock

2016-11-08 Thread Marc Siskin
Ralph, Does typing “Copy this card to this stack” work in the message box? Marc On Nov 8, 2016, at 12:33 PM, Ralph DiMola mailto:rdim...@evergreeninfo.net>> wrote: How does one duplicate a card in v8? I can't seem to select a card in the IDE. "duplicate card" is no longer displayed. I guess thi

Re: Lock moves is not working when objects are moved to the points of an other graphic

2016-11-08 Thread Tore Nilsen
Yes, this is what does not work in 8.1.0. I've tried it both on my Macbook and on my iMac, and the second movement only start once the first is finished. I should probably look for a bug report/file a bug report if no other report exists. Tore > 8. nov. 2016 kl. 17.16 skrev dunbarx : > > Hi. >

Duplicating a card in v8

2016-11-08 Thread Ralph DiMola
How does one duplicate a card in v8? I can't seem to select a card in the IDE. "duplicate card" is no longer displayed. I guess this have been replaced by the "duplicate" text. If I select the card in the property inspector the copy and duplicate edit options are grayed out. Also after selecting th

RE: property inspector lock

2016-11-08 Thread Ralph DiMola
How does one duplicate a card in v8? I can't seem to select a card in the IDE. "duplicate card" is no longer displayed. I guess this have been replaced by the "duplicate" text. If I select the card in the property inspector the copy and duplicate edit options are grayed out. Also after selecting th

property inspector lock

2016-11-08 Thread Mike Kerner
Any idea how to make the lock on the property inspector stick? If I select the property inspector for an object and hit the lock, it does not seem to stick. So for example, pick A. Unlock PI. Pick B. PI is now locked. Unlock PI. Repeat - PI lock doesn't seem to stick. -- On the first day, Go

8 datagrid text properties

2016-11-08 Thread Mike Kerner
I guess I haven't had to work any text properties in dg's in 8, because I don't see how to change either the header or the body text props. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few

Re: Stack name conflicts resolved?

2016-11-08 Thread Richard Gaskin
I made no reference to stack ID; I'm familiar with its role as a container for the ID incrementer. The short name of a stack is not the only distinguishing attribute. Its file path is also available. Indeed, topstack returns the path as a part of the stack reference, but apparently does not

Re: Lock moves is not working when objects are moved to the points of an other graphic

2016-11-08 Thread dunbarx
Hi. Do you mean something like this: on mouseUp set lockmoves to true move grc "Oval1" to the points of grc 3 in 350 milliseconds without waiting move grc "Oval2" to the points of grc 4 in 2 seconds without waiting set lockmoves to false end mouseUp Works fine here in v 6.7, so I assume the iss

RE: iPad Pro screenshots?

2016-11-08 Thread Ralph DiMola
I create all my screen shots in the IDE. I resize the screen for each resolution and then export a screen shot to a png. The status bar is missing but one click export of all resolutions makes up for that. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Or

Re: iPad Pro screenshots?

2016-11-08 Thread Phil Jimmieson
The screen size is bigger, and Apple now expect you to provide at least one screenshot in that size. I did it for a recent App update using the iPad Pro simulator in Xcode 8 on iOS 10.11.6 on a retina iMac. The previous time I did it for an App update I took a standard iPad retina screenshot and

Re: Stack name conflicts resolved?

2016-11-08 Thread Bob Sneidar
As he said, the stack ID is not really it's ID. In other words LC does not use the stack ID to identify it. Think of the stack ID as "the next ID to be assigned to a new object" much like SQL maintains a value in a master table of some sort with the next unique ID for each unique numerical colum

Lock moves is not working when objects are moved to the points of an other graphic

2016-11-08 Thread Tore Nilsen
In LC 8.1.0 on a Mac with macOS 10.12, I have encountered some problems when trying to move several objects simultaneously. The script below works as expected: on mouseUp set lockmoves to true move grc "Oval1" from 50,60 to 1200,60 in 350 milliseconds without waiting move grc "Oval2" from 50,

Re: iPad Pro screenshots?

2016-11-08 Thread Colin Holgate
All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can’t already do? > On Nov 8, 2016, at 6:50 AM, Alan wrote: > > Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain > myself well enough. > > The problem is that, AFAIK, the iPa

Re: iPad Pro screenshots?

2016-11-08 Thread Colin Holgate
In the simulator the File menu only has one entry, Save Screen Shot. Maybe that would do? > On Nov 8, 2016, at 1:22 AM, stephen barncard > wrote: > > On Mon, Nov 7, 2016 at 10:21 PM, stephen barncard < > stephenrevoluti...@barncard.com> wrote: > >> can't you just take a screenshot on the iPa

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Mike Bonner
Very interesting discussion! I'm still curious though. Since the op already takes the json based file and turns it into an array ( probably using an existing json library.) Since this step is already done, and the array esists, is there an actual benefit to then breaking that array into separate

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Ben Rubinstein
Hi Mark, There's a reason why I haven't posted the code of explodeRow... but I'm sure it _could_ be efficient! Thanks for reminding me about split with one delimiter - I never use that. I think when I first encountered it I was so annoyed by the thought that it was pointless, because what I

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Mark Waddingham
Apologies - I clicked the wrong button in my email client and managed to send a partially composed message. Here is the correct version! On 2016-11-08 12:48, Ben Rubinstein wrote: The point is that in my first pattern, I have outside the loop assigned column (item) indices to named variables (b

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Mark Waddingham
On 2016-11-08 12:48, Ben Rubinstein wrote: The point is that in my first pattern, I have outside the loop assigned column (item) indices to named variables (based on the items of the first, header, row). In the loop LC then has to locate the indexed items in an individual data row. In the first

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Ben Rubinstein
On 07/11/2016 18:05, Richard Gaskin wrote: I wouldn't care to hazard a guess as to the relative speed of "aData[x]" versus "item x": but it's the overhead of the function which creates the array on that I don't want to pay *on every row*. The function call itself has very small overheard. Wh

Re: iPad Pro screenshots?

2016-11-08 Thread Alan
Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-08 Thread Kay C Lan
On Mon, Nov 7, 2016 at 1:21 AM, Mark Wieder wrote: > But maybe Bramanathaswami has some special use case? Assuming that is the case then 'do' is the answer and you'll find an example in the Dictionary under the 'local' command; the last example. Unfortunately the example is a bit of negative lea