Re: Stumped on Datagrid Problem

2018-12-14 Thread Bob Sneidar via use-livecode
You need to sort the keys of the array and populate accordingly. 

put the keys of aData into tKeyList
sort tKeyList numeric descending

repeat for each line tKey in tKeyList
...

Bob S


> On Dec 14, 2018, at 14:10 , Tom Glod via use-livecode 
>  wrote:
> 
> I am using the "dgNumberOfRecords" mechanism to populate a grid.
> Everything works as expected.
> 
> except .I need the last (new)  element to show up first and the first
> element to show up last.
> 
> this is normally achieved by sorting the column, but I cannot sort using
> the "large dataset method".
> 
> I really don't want to rewrite the array to reverse the sequence every time
> a new record is added. that will degrade performance as time goes on
> big time..which is the very reason why i used this method for
> populating the grid in the first place. this grid can have 10,000 items
> in it after a months use.
> 
> the other problem is that elements can also be deleted from the array so
> the array indexes are not always perfectly sequential
> 
> hmmm
> 
> any ideas are welcome. thank you.


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


Stumped on Datagrid Problem

2018-12-14 Thread Tom Glod via use-livecode
I am using the "dgNumberOfRecords" mechanism to populate a grid.
Everything works as expected.

except .I need the last (new)  element to show up first and the first
element to show up last.

this is normally achieved by sorting the column, but I cannot sort using
the "large dataset method".

I really don't want to rewrite the array to reverse the sequence every time
a new record is added. that will degrade performance as time goes on
big time..which is the very reason why i used this method for
populating the grid in the first place. this grid can have 10,000 items
in it after a months use.

the other problem is that elements can also be deleted from the array so
the array indexes are not always perfectly sequential

hmmm

any ideas are welcome. thank you.
___
use-livecode mailing list
use-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: get offset of current selection

2018-12-14 Thread Kaveh Bazargan via use-livecode
Correct. Thank you. :-)

On Fri, 14 Dec 2018 at 14:30, Tore Nilsen via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The selectedChunk is probably what you are looking for.
>
> Regards
> Tore Nilsen
>
>
>
>
>
>
> > 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > I am stuck on something that should be simple. User has selected a text,
> > say a word in a field. How do I get the offset of the start and end of
> > selection? (Not any matching text, but the particular chars selected.)
> >
> > I know I am going to be embarrassed at the reply. :-\
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies  •
> Twitter
> >  • LinkedIn
> > 
> > ___
> > use-livecode mailing list
> > use-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



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
use-livecode mailing list
use-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: Seeking OSX Code signing consultant...

2018-12-14 Thread Ralph DiMola via use-livecode
The only downside of Android signing is if you lose your local signing
file(keystore) or forget any of the passwords(keystore master or app) you
can never update the app again on the PlayStore.

I have the iOS thingy under control. I run multiple Xcodes. If anyone needs
any help just ask me. I can get you though setup and the signing process but
can only make suggestions getting you though the Apple approval gauntlet.
When deploying to external testers I suggest JLM's AirLaunch plug-in.

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 J. Landman Gay via use-livecode
Sent: Thursday, December 13, 2018 4:20 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Seeking OSX Code signing consultant...

On 12/12/18 1:20 PM, Paul Dupuis via use-livecode wrote:
> Either there are not enough people willing to pay for 3rd party 
> developer services for 3rd party developers to make a living at it OR 
> the market of people wanting LC related developer expertise is larger 
> than the available number of "experts".
> 
> Also, if you are making a commercial application in LiveCode for 
> Windows, OSX, and probably Linux too, you pretty much have to code 
> sign the app or your sales will suffer (if you get any at all). For 
> Android and iOS code signing is required.

I don't know about others, but I haven't built an iOS app for some years
now. I did learn how to do it a long time ago, but a lot has changed since
then so I'm no longer qualified to call myself an expert. The reason I
haven't built for iOS lately is because of Apple's many restrictions which
disqualify my clients' apps, so we release for Android instead where there
is more flexibility to make apps that do what we need. (One example: Apple's
unfathomable restriction on reading an NFC tag ID. We'd have an iOS app if
it weren't for that.)

Codesigning for Android is dead simple, and once you've created a signing
key on your own hard drive you can continue to use it indefinitely. There
are one-click tools for codesigning on Windows and OS X, which helps, but
even OS X requires the certificate juggling game, and Windows requires a
lengthy process (and some cost) to get developer verification. But in any
case, if the problem is with your certificates, there's not much anyone else
can do; as the developer you need to know how to create and manage those
yourself, or allow someone else to access your account and do it.

While it isn't strictly LC-related, a lesson on how to deal with Apple
certificates wouldn't hurt. Apple is the only company that requires those.

-- 
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: get offset of current selection

2018-12-14 Thread Tore Nilsen via use-livecode
The selectedChunk is probably what you are looking for.

Regards
Tore Nilsen






> 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode 
> :
> 
> I am stuck on something that should be simple. User has selected a text,
> say a word in a field. How do I get the offset of the start and end of
> selection? (Not any matching text, but the particular chars selected.)
> 
> I know I am going to be embarrassed at the reply. :-\
> 
> -- 
> Kaveh Bazargan
> Director
> River Valley Technologies  • Twitter
>  • LinkedIn
> 
> ___
> use-livecode mailing list
> use-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

get offset of current selection

2018-12-14 Thread Kaveh Bazargan via use-livecode
I am stuck on something that should be simple. User has selected a text,
say a word in a field. How do I get the offset of the start and end of
selection? (Not any matching text, but the particular chars selected.)

I know I am going to be embarrassed at the reply. :-\

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

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

preOpenCard not running on iPhoneX simulator

2018-12-14 Thread Alan via use-livecode
I'm having a strange issue with a mobile app - on the 11.2 simulator a 
preOpenCard handler doesn't seem to run on the iPhoneX simulator but does with 
other devices.

What might be stopping this handler from running on the X simulator but not on 
others? Any ideas?

Strangely, when I make a barebones test stack with only a preOpenCard handler, 
it runs ok on the X simulator. So that points to something in my original 
stack... but  what can stop the preOpenCard message from being sent??

cheers

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