Re: Set Line color in dG?

2020-06-16 Thread William Prothero via use-livecode
Zryp:
Ah, now I get it.  Thanks for your patience. 
Best,
Bill

William A. Prothero
https://earthlearningsolutions.org

> On Jun 16, 2020, at 2:11 PM, zryip theSlug via use-livecode 
>  wrote:
> 
> Assuming the lesson you have taken in example is the following:
> http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table
> 
> Code for coloring rows is located in the button "My column default
> behavior".
> The code you shared is located in the "toggle line 3 color" but it is not
> enough for coloring a datagrid row. Having a row in color is not a standard
> datagrid feature. So that is the reason you have to change the  "default
> column" behavior script of your datagrid.
> 
> Do you have copied the  "My column default behavior" button in your project
> and if yes, do you have linked your datagrid to this button by using the
> code?
> 
> set the dgProp["default column behavior"] of grp "myDatagrid" to the long
> id of btn " My column default behavior " or what ever you named your column
> behavior script button.
> 
> where  "myDatagrid" is the name of your datagrid.
> 
> Hope I'm more clear in my explanation.
> 
> 
> Best Regards,
> 
> On Tue, Jun 16, 2020 at 10:08 PM Prothero-ELS via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Zryp,
>> Crap, accidentally sent the response without finishing.
>> 
>> I was checking that the code in my test button was actually talking to the
>> datagrid in question, and it returned the correct values, so I assumed it
>> was.
>> 
>> I don’t understand how “myBtn” would participate. I need to change colors
>> from some other script.
>> 
>> Best,
>> Bill
>> 
>> William Prothero
>> https://earthlearningsolutions.org
>> 
>>> On Jun 16, 2020, at 1:04 PM, Prothero-ELS <
>> proth...@earthlearningsolutions.org> wrote:
>>> 
>>> Zryp,
>>> What I wanted to do is make a distinction between data that was
>> retrieved from a database and data that was entered but not yet stored. A
>> datagrid is. Way overkill for what I’m doing, but  the button that
>> accesses the datagrid data to get the specific line is for testing only.
>>> 
>>> William Prothero
>>> https://earthlearningsolutions.org
>>> 
 On Jun 16, 2020, at 12:52 PM, zryip theSlug via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
 
 Bill,
 
 The example you mention is probably using a custom column behavior
>> script
 for accomplishing this.
 Do you have copied the button in your project? The button must be
>> linked to
 your datagrid by using the following code:
 
 set the dgProp["default column behavior"] of grp "myDatagrid" to the
>> long
 id of btn "myBtn"
 
 
 Best Regards,
 
 
> On Tue, Jun 16, 2020 at 8:55 PM William Prothero via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
> Folks:
> I’m having trouble getting the line color of a dataGrid to change. The
> lessons shows a very simple tutorial and the download example works.
> However, in my application, it doesn’t.
> 
> The code is:
> on mouseup
> 
>  put the dgDataOfLine[3] of group "meterReadings" of this cd into
> theDataA
> 
>  put not theDataA["line has error"] into theDataA["line has error"]
> 
>  set the dgDataOfLine[3] of group "meterReadings" of this cd to
>> theDataA
> 
> end mouseup
> 
> I get the expected values for the line shown on the datagrid, but the
> color doesn’t change. I’m running Catalina 10.15.5 on a pretty new Mac
> laptop. I’m using livecode 9.6.0 Business.
> 
> The mystery is that the downloaded example works as expected, but not
>> on
> my app.
> 
> Have I missed something?
> 
> Best,
> Bill
> 
> 
> William A. Prothero
> https://earthlearningsolutions.org
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
 
 
 --
 Zryip TheSlug
 http://www.aslugontheroad.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
>> 
> 
> 
> -- 
> Zryip TheSlug
> http://www.aslugontheroad.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to 

Re: Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-16 Thread Paul Dupuis via use-livecode

Hi Panos,

Thank you very much. The discussion in the bug entry answered  lot of my 
questions. I have one last thing I hope you or someone can point me two, 
which is a list of Apple macOS "entitlements"


From the bug entry I see:

com.apple.security.device.audio-input

com.apple.security.device.camera


I need to figure out the ones for email access, finder integration 
(drag/drop), internet access, and disk access.


We've seen Catalina ask the user for:

1. HyperRESEARCH requests access to the Internet (if Apple Firewall is
   turned on). - We assume this is because out app needs to check for
   new versions and updates and for license management.
2. HyperRESEARCH requests access to the "Finder". - We assume this is
   to receive AppleEvents (system messages) if a Study file is double
   clicked or dragged and dropped on HyperRESEARCH to open the Study.
3. HyperRESEARCH requests access to your "Contacts". We assume this is
   for access to send an email for an error report if an error occurs.
   Our App does not accessing any names or addresses.

I have tried Google for macOS or Catalina and entitlements but all I 
seem to be able to find is articles from the user's perspective, not 
developers information.





On 6/15/2020 12:21 PM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I guess you can sign the standalone mac app with entitlements, i.e. use a
file that will contain all the necessary entitlements, and include it in
the params passed to the codesign command. See this report for more details:

https://quality.livecode.com/show_bug.cgi?id=22660

Kind regards,
Panos
--

On Mon, 15 Jun 2020 at 14:56, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application
(LiveCode standalone) is code-signed. It is then packaged in an
installers (LiveCode standalone) and the installer is code signed. That
is then placed in a DMG, which is code-signed, notarized, and stapled.

This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and
installation, when the applications is first launched, Catalina does not
ask for the permissions the Application needs. Instead certain handler
throw an execution error. The handlers that produce the errors on
startup when Catalina fails to ask for permissions have the following in
common:

The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the
home folder & "/Library/PreferencePanes/"
or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks
and earlier teh temporaty folder was
/Users//Library/Caches/TemporaryItems

After setting the defaultFolder, the code gets 'the files' or 'the
folders' and fails (actually we've not pinned down whether it fails on
set the defaultFolder OR on the call to 'the files/folders')

Going to Apple (menu) > System Preferences (menu item) > Security &
Privacy (control) > Privacy (tab) and selecting Full Disk Access and
adding our applications prevents these errors from occuring.

The issue is clearly with Catalina failing to detect and ask for the
correct permissions. This is a known issue a number of developers have
run into. See https://forums.developer.apple.com/thread/125438 as one
example where an Apple support person admits that detecting what
permissions a process is requesting that is tied back to your user
visible app (something Apple calls 'responsibility tracking') is really
hard.

For iOS and Android, you can specify entitlements or requested
permissions in the Standalone Builder Settings. How do you do this for
macOS Catalina?

Does anyone know if there is a way to specify entitlements for a macOS
desktop app built in LiveCode? I have been googling and googling and can
seem to find anything. I found one discussion on stackExchange that seem
to imply that the PLIST file could be edited to specify entitlements. I
have tried the Apple Developer site, but SO MUCH of it is orient towards
people with lots of Apple Developer experience and focuses of C and
SWIFT and Apple specific technologies I don't understand.

I can edit the XML in a PLIST file in the standalone bundle IF I only
knew what to add?


___
use-livecode mailing list
use-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: Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread Brian Milby via use-livecode
You just point to the Xcode binary.  You don’t navigate to the actual SDK 
located within.

Thanks,
Brian
On Jun 16, 2020, 5:41 PM -0400, Graham Samuel via use-livecode 
, wrote:
> Oh Heck - Xcode is so huge that it is quite a proposition to download yet 
> another copy here in the countryside. Oh well.
>
> However, after installing, I still won’t know where to find the SDK so as to 
> link it to LC. There must have been one in 11.5 even if it was the wrong one 
> for LC, but I could not at all see where to find it. I need the path to the 
> thing! Panos perhaps can help, and perhaps can say when 11.5 will be flavour 
> of the month…
>
> Deployment! No point in another rant, I suppose.
>
> Graham
>
> > On 16 Jun 2020, at 21:39, matthias rebbe via use-livecode 
> >  wrote:
> >
> > Graham,
> >
> > first of all the release notes 9.6.0 say that Xcode 11.4 is supported, not 
> > 11.5.
> >
> > So i would suggest to download/install Xcode 11.4. You can find older 
> > versions of Xcode in the download sections of your developer account.
> >
> >
> > -
> > Matthias Rebbe
> > Life Is Too Short For Boring Code
> >
> > > Am 16.06.2020 um 21:32 schrieb Graham Samuel via use-livecode 
> > > :
> > >
> > > I have a viable iOS app that I have previously managed to load into my 
> > > own iPhone etc. Now I want to ready it for the app store. Since I last 
> > > asked LC 9.6.0 to save it as a standalone, I have acquired a new iMac 
> > > (runing Catalina) and upgraded Xcode to version 11.5.
> > >
> > > Now when I try to save my LC project as a standalone, I get an error 
> > > message from LC:
> > >
> > > “There was an error while saving the standalone application
> > > In order to perform device builds, you must have the iOS SDK 13.4 
> > > configured - iOS 13.4 comes with Xcode 11.4”
> > >
> > > Well, thanks for telling me,. Trying to research this, I find that there 
> > > is an LC lesson that says
> > >
> > > > NB Xcode must be linked to your version of LiveCode via LiveCodes 
> > > > Mobile Support Preferences. This option is available from 
> > > > "LiveCode"--->"Preferences">"Mobile Support”
> > >
> > > Yes, and that says I have to find the relevant SDKs. But where are they? 
> > > I search of the iMac didn’t find them. Nothing in Application Support 
> > > AFAIKS.
> > >
> > > Someone please help
> > >
> > > Graham
> > >
> > >
> > > ___
> > > use-livecode mailing list
> > > use-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: Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread Graham Samuel via use-livecode
Oh Heck - Xcode is so huge that it is quite a proposition to download yet 
another copy here in the countryside. Oh well. 

However, after installing, I still won’t know where to find the SDK so as to 
link it to LC. There must have been one in 11.5 even if it was the wrong one 
for LC, but I could not at all see where to find it. I need the path to the 
thing! Panos perhaps can help, and perhaps can say when 11.5 will be flavour of 
the month…

Deployment! No point in another rant, I suppose.

Graham

> On 16 Jun 2020, at 21:39, matthias rebbe via use-livecode 
>  wrote:
> 
> Graham,
> 
> first of all the release notes 9.6.0 say that Xcode 11.4 is supported, not 
> 11.5.
> 
> So i would suggest to download/install Xcode 11.4. You can find older 
> versions of Xcode in the download sections of your developer account.
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 16.06.2020 um 21:32 schrieb Graham Samuel via use-livecode 
>> :
>> 
>> I have a viable iOS app that I have previously managed to load into my own 
>> iPhone etc. Now I want to ready it for the app store. Since I last asked LC 
>> 9.6.0 to save it as a standalone, I have acquired a new iMac (runing 
>> Catalina) and upgraded Xcode to version 11.5.
>> 
>> Now when I try to save my LC project as a standalone, I get an error message 
>> from LC:
>> 
>> “There was an error while saving the standalone application
>> In order to perform device builds, you must have the iOS SDK 13.4 configured 
>> - iOS 13.4 comes with Xcode 11.4”
>> 
>> Well, thanks for telling me,. Trying to research this, I find that there is 
>> an LC lesson that says
>> 
>>> NB Xcode must  be linked to your version of LiveCode via LiveCodes Mobile 
>>> Support Preferences. This option is available from 
>>> "LiveCode"--->"Preferences">"Mobile Support”
>> 
>> Yes, and that says I have to find the relevant SDKs. But where are they? I 
>> search of the iMac didn’t find them. Nothing in Application Support AFAIKS.
>> 
>> Someone please help
>> 
>> Graham
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Set Line color in dG?

2020-06-16 Thread zryip theSlug via use-livecode
Assuming the lesson you have taken in example is the following:
http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table

Code for coloring rows is located in the button "My column default
behavior".
The code you shared is located in the "toggle line 3 color" but it is not
enough for coloring a datagrid row. Having a row in color is not a standard
datagrid feature. So that is the reason you have to change the  "default
column" behavior script of your datagrid.

Do you have copied the  "My column default behavior" button in your project
and if yes, do you have linked your datagrid to this button by using the
code?

 set the dgProp["default column behavior"] of grp "myDatagrid" to the long
id of btn " My column default behavior " or what ever you named your column
behavior script button.

where  "myDatagrid" is the name of your datagrid.

Hope I'm more clear in my explanation.


Best Regards,

On Tue, Jun 16, 2020 at 10:08 PM Prothero-ELS via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Zryp,
> Crap, accidentally sent the response without finishing.
>
> I was checking that the code in my test button was actually talking to the
> datagrid in question, and it returned the correct values, so I assumed it
> was.
>
> I don’t understand how “myBtn” would participate. I need to change colors
> from some other script.
>
> Best,
> Bill
>
> William Prothero
> https://earthlearningsolutions.org
>
> > On Jun 16, 2020, at 1:04 PM, Prothero-ELS <
> proth...@earthlearningsolutions.org> wrote:
> >
> > Zryp,
> > What I wanted to do is make a distinction between data that was
> retrieved from a database and data that was entered but not yet stored. A
> datagrid is. Way overkill for what I’m doing, but  the button that
> accesses the datagrid data to get the specific line is for testing only.
> >
> > William Prothero
> > https://earthlearningsolutions.org
> >
> >> On Jun 16, 2020, at 12:52 PM, zryip theSlug via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> Bill,
> >>
> >> The example you mention is probably using a custom column behavior
> script
> >> for accomplishing this.
> >> Do you have copied the button in your project? The button must be
> linked to
> >> your datagrid by using the following code:
> >>
> >> set the dgProp["default column behavior"] of grp "myDatagrid" to the
> long
> >> id of btn "myBtn"
> >>
> >>
> >> Best Regards,
> >>
> >>
> >>> On Tue, Jun 16, 2020 at 8:55 PM William Prothero via use-livecode <
> >>> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> Folks:
> >>> I’m having trouble getting the line color of a dataGrid to change. The
> >>> lessons shows a very simple tutorial and the download example works.
> >>> However, in my application, it doesn’t.
> >>>
> >>> The code is:
> >>> on mouseup
> >>>
> >>>   put the dgDataOfLine[3] of group "meterReadings" of this cd into
> >>> theDataA
> >>>
> >>>   put not theDataA["line has error"] into theDataA["line has error"]
> >>>
> >>>   set the dgDataOfLine[3] of group "meterReadings" of this cd to
> theDataA
> >>>
> >>> end mouseup
> >>>
> >>> I get the expected values for the line shown on the datagrid, but the
> >>> color doesn’t change. I’m running Catalina 10.15.5 on a pretty new Mac
> >>> laptop. I’m using livecode 9.6.0 Business.
> >>>
> >>> The mystery is that the downloaded example works as expected, but not
> on
> >>> my app.
> >>>
> >>> Have I missed something?
> >>>
> >>> Best,
> >>> Bill
> >>>
> >>>
> >>> William A. Prothero
> >>> https://earthlearningsolutions.org
> >>>
> >>>
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >>
> >>
> >> --
> >> Zryip TheSlug
> >> http://www.aslugontheroad.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
>


-- 
Zryip TheSlug
http://www.aslugontheroad.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


Re: Set Line color in dG?

2020-06-16 Thread Prothero-ELS via use-livecode
Zryp,
Crap, accidentally sent the response without finishing.

I was checking that the code in my test button was actually talking to the 
datagrid in question, and it returned the correct values, so I assumed it was. 

I don’t understand how “myBtn” would participate. I need to change colors from 
some other script.

Best,
Bill

William Prothero
https://earthlearningsolutions.org

> On Jun 16, 2020, at 1:04 PM, Prothero-ELS 
>  wrote:
> 
> Zryp,
> What I wanted to do is make a distinction between data that was retrieved 
> from a database and data that was entered but not yet stored. A datagrid is. 
> Way overkill for what I’m doing, but  the button that accesses the 
> datagrid data to get the specific line is for testing only. 
> 
> William Prothero
> https://earthlearningsolutions.org
> 
>> On Jun 16, 2020, at 12:52 PM, zryip theSlug via use-livecode 
>>  wrote:
>> 
>> Bill,
>> 
>> The example you mention is probably using a custom column behavior script
>> for accomplishing this.
>> Do you have copied the button in your project? The button must be linked to
>> your datagrid by using the following code:
>> 
>> set the dgProp["default column behavior"] of grp "myDatagrid" to the long
>> id of btn "myBtn"
>> 
>> 
>> Best Regards,
>> 
>> 
>>> On Tue, Jun 16, 2020 at 8:55 PM William Prothero via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Folks:
>>> I’m having trouble getting the line color of a dataGrid to change. The
>>> lessons shows a very simple tutorial and the download example works.
>>> However, in my application, it doesn’t.
>>> 
>>> The code is:
>>> on mouseup
>>> 
>>>   put the dgDataOfLine[3] of group "meterReadings" of this cd into
>>> theDataA
>>> 
>>>   put not theDataA["line has error"] into theDataA["line has error"]
>>> 
>>>   set the dgDataOfLine[3] of group "meterReadings" of this cd to theDataA
>>> 
>>> end mouseup
>>> 
>>> I get the expected values for the line shown on the datagrid, but the
>>> color doesn’t change. I’m running Catalina 10.15.5 on a pretty new Mac
>>> laptop. I’m using livecode 9.6.0 Business.
>>> 
>>> The mystery is that the downloaded example works as expected, but not on
>>> my app.
>>> 
>>> Have I missed something?
>>> 
>>> Best,
>>> Bill
>>> 
>>> 
>>> William A. Prothero
>>> https://earthlearningsolutions.org
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> -- 
>> Zryip TheSlug
>> http://www.aslugontheroad.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: Moving object out of a group

2020-06-16 Thread Michael Kristensen via use-livecode
Can this help

https://forums.livecode.com/viewtopic.php?f=7=32494=178858#p178858

Mic

___
use-livecode mailing list
use-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: Set Line color in dG?

2020-06-16 Thread Prothero-ELS via use-livecode
Zryp,
What I wanted to do is make a distinction between data that was retrieved from 
a database and data that was entered but not yet stored. A datagrid is. Way 
overkill for what I’m doing, but  the button that accesses the datagrid 
data to get the specific line is for testing only. 

William Prothero
https://earthlearningsolutions.org

> On Jun 16, 2020, at 12:52 PM, zryip theSlug via use-livecode 
>  wrote:
> 
> Bill,
> 
> The example you mention is probably using a custom column behavior script
> for accomplishing this.
> Do you have copied the button in your project? The button must be linked to
> your datagrid by using the following code:
> 
> set the dgProp["default column behavior"] of grp "myDatagrid" to the long
> id of btn "myBtn"
> 
> 
> Best Regards,
> 
> 
>> On Tue, Jun 16, 2020 at 8:55 PM William Prothero via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Folks:
>> I’m having trouble getting the line color of a dataGrid to change. The
>> lessons shows a very simple tutorial and the download example works.
>> However, in my application, it doesn’t.
>> 
>> The code is:
>> on mouseup
>> 
>>put the dgDataOfLine[3] of group "meterReadings" of this cd into
>> theDataA
>> 
>>put not theDataA["line has error"] into theDataA["line has error"]
>> 
>>set the dgDataOfLine[3] of group "meterReadings" of this cd to theDataA
>> 
>> end mouseup
>> 
>> I get the expected values for the line shown on the datagrid, but the
>> color doesn’t change. I’m running Catalina 10.15.5 on a pretty new Mac
>> laptop. I’m using livecode 9.6.0 Business.
>> 
>> The mystery is that the downloaded example works as expected, but not on
>> my app.
>> 
>> Have I missed something?
>> 
>> Best,
>> Bill
>> 
>> 
>> William A. Prothero
>> https://earthlearningsolutions.org
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> Zryip TheSlug
> http://www.aslugontheroad.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: Set Line color in dG?

2020-06-16 Thread zryip theSlug via use-livecode
Bill,

The example you mention is probably using a custom column behavior script
for accomplishing this.
Do you have copied the button in your project? The button must be linked to
your datagrid by using the following code:

set the dgProp["default column behavior"] of grp "myDatagrid" to the long
id of btn "myBtn"


Best Regards,


On Tue, Jun 16, 2020 at 8:55 PM William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Folks:
> I’m having trouble getting the line color of a dataGrid to change. The
> lessons shows a very simple tutorial and the download example works.
> However, in my application, it doesn’t.
>
> The code is:
> on mouseup
>
> put the dgDataOfLine[3] of group "meterReadings" of this cd into
> theDataA
>
> put not theDataA["line has error"] into theDataA["line has error"]
>
> set the dgDataOfLine[3] of group "meterReadings" of this cd to theDataA
>
> end mouseup
>
> I get the expected values for the line shown on the datagrid, but the
> color doesn’t change. I’m running Catalina 10.15.5 on a pretty new Mac
> laptop. I’m using livecode 9.6.0 Business.
>
> The mystery is that the downloaded example works as expected, but not on
> my app.
>
> Have I missed something?
>
> Best,
> Bill
>
>
> William A. Prothero
> https://earthlearningsolutions.org
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Zryip TheSlug
http://www.aslugontheroad.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


Re: Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread matthias rebbe via use-livecode
Graham,

first of all the release notes 9.6.0 say that Xcode 11.4 is supported, not 11.5.

So i would suggest to download/install Xcode 11.4. You can find older versions 
of Xcode in the download sections of your developer account.


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 16.06.2020 um 21:32 schrieb Graham Samuel via use-livecode 
> :
> 
> I have a viable iOS app that I have previously managed to load into my own 
> iPhone etc. Now I want to ready it for the app store. Since I last asked LC 
> 9.6.0 to save it as a standalone, I have acquired a new iMac (runing 
> Catalina) and upgraded Xcode to version 11.5.
> 
> Now when I try to save my LC project as a standalone, I get an error message 
> from LC:
> 
> “There was an error while saving the standalone application
> In order to perform device builds, you must have the iOS SDK 13.4 configured 
> - iOS 13.4 comes with Xcode 11.4”
> 
> Well, thanks for telling me,. Trying to research this, I find that there is 
> an LC lesson that says
> 
>> NB Xcode must  be linked to your version of LiveCode via LiveCodes Mobile 
>> Support Preferences. This option is available from 
>> "LiveCode"--->"Preferences">"Mobile Support”
> 
> Yes, and that says I have to find the relevant SDKs. But where are they? I 
> search of the iMac didn’t find them. Nothing in Application Support AFAIKS.
> 
> Someone please help
> 
> Graham
> 
> 
> ___
> use-livecode mailing list
> use-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


Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread Graham Samuel via use-livecode
I have a viable iOS app that I have previously managed to load into my own 
iPhone etc. Now I want to ready it for the app store. Since I last asked LC 
9.6.0 to save it as a standalone, I have acquired a new iMac (runing Catalina) 
and upgraded Xcode to version 11.5.

Now when I try to save my LC project as a standalone, I get an error message 
from LC:

“There was an error while saving the standalone application
In order to perform device builds, you must have the iOS SDK 13.4 configured - 
iOS 13.4 comes with Xcode 11.4”

Well, thanks for telling me,. Trying to research this, I find that there is an 
LC lesson that says

> NB Xcode must  be linked to your version of LiveCode via LiveCodes Mobile 
> Support Preferences. This option is available from 
> "LiveCode"--->"Preferences">"Mobile Support”

Yes, and that says I have to find the relevant SDKs. But where are they? I 
search of the iMac didn’t find them. Nothing in Application Support AFAIKS.

Someone please help

Graham


___
use-livecode mailing list
use-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: base64urlencode

2020-06-16 Thread Mark Wieder via use-livecode

On 6/16/20 12:00 PM, Mike Kerner via use-livecode wrote:

you sure?  there is a difference in padding, as well, it seems

Dunno. I don't have a use case for this. But

https://stackoverflow.com/questions/30246497/using-statement-for-base64urlencode

--
 Mark Wieder
 ahsoftw...@gmail.com

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


SHA256withRSA

2020-06-16 Thread Mike Kerner via use-livecode
how about SHA256withRSA - anyone have an lc script?

-- 
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 hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-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: base64urlencode

2020-06-16 Thread Mike Kerner via use-livecode
you sure?  there is a difference in padding, as well, it seems.

On Tue, Jun 16, 2020 at 12:44 PM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 6/16/20 9:24 AM, Mike Kerner via use-livecode wrote:
> > does anyone have a routine to do base64urlencoding?  it's not the same as
> > base64encoding or urlencoding.
> >
>
> It mostly is the same. Does this do the trick?
>
> function base64urlencode pString
> local tEncoded
>
> put base64encode(pString) into tEncoded
> replace "+" with "-" in tEncoded
> replace "/" with "_" in tEncoded
> replace "=" with "" in tEncoded
> return tEncoded
> end base64urlencode
>
> --
>   Mark Wieder
>   ahsoftw...@gmail.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
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 hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Set Line color in dG?

2020-06-16 Thread William Prothero via use-livecode
Folks:
I’m having trouble getting the line color of a dataGrid to change. The lessons 
shows a very simple tutorial and the download example works. However, in my 
application, it doesn’t. 

The code is:
on mouseup

put the dgDataOfLine[3] of group "meterReadings" of this cd into theDataA

put not theDataA["line has error"] into theDataA["line has error"]

set the dgDataOfLine[3] of group "meterReadings" of this cd to theDataA

end mouseup

I get the expected values for the line shown on the datagrid, but the color 
doesn’t change. I’m running Catalina 10.15.5 on a pretty new Mac laptop. I’m 
using livecode 9.6.0 Business.

The mystery is that the downloaded example works as expected, but not on my 
app. 

Have I missed something?

Best,
Bill


William A. Prothero
https://earthlearningsolutions.org


___
use-livecode mailing list
use-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: base64urlencode

2020-06-16 Thread Mark Wieder via use-livecode

On 6/16/20 9:24 AM, Mike Kerner via use-livecode wrote:

does anyone have a routine to do base64urlencoding?  it's not the same as
base64encoding or urlencoding.



It mostly is the same. Does this do the trick?

function base64urlencode pString
local tEncoded

put base64encode(pString) into tEncoded
replace "+" with "-" in tEncoded
replace "/" with "_" in tEncoded
replace "=" with "" in tEncoded
return tEncoded
end base64urlencode

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Moving object out of a group

2020-06-16 Thread Pi Digital via use-livecode
I don’t hate it but it can be a little frustrating and awkward. It’s still 
better than it was in v8 and than the application manager. It desperately needs 
a refresh button. And layering needs a rethink/overhaul. V10 maybe. 

Looking at the bug list there are heaps for PB that have/will not be addressed. 
Confirmed is as far as most of them get. 

Bug 18818 is the most relevant to my symptoms. Reported in Nov 2016. Bumped in 
Mar 2018. Not touched since. I suppose we have to keep bumping these if we want 
them looked in to or they just end up getting lost in the forest of bugs that 
get added and not addressed beyond ‘Confirmed’. 

Sean Cole
Pi Digital Productions Ltd


eMail Ts & Cs


> On 16 Jun 2020, at 17:19, doc hawk via use-livecode 
>  wrote:
> 
> 
> Mark mumbled,
> 
>> Have I mentioned lately how much I hate the Project Browser?
> 
> I still find it far too painful to use.   
> 
> A couple of times a year to work around another bug or crash situation, but 
> that’s it.
> ___
> use-livecode mailing list
> use-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


base64urlencode

2020-06-16 Thread Mike Kerner via use-livecode
does anyone have a routine to do base64urlencoding?  it's not the same as
base64encoding or urlencoding.

-- 
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 hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-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: Moving object out of a group

2020-06-16 Thread doc hawk via use-livecode


Mark meandedered,
> 
> On 6/15/20 12:32 PM, doc hawk via use-livecode wrote:

>> by scripting the past.

> I thought Jacque was the only who had that superpower…


She had been, but no longer was, once I adjust it.

(Gosh,inter- temporal grammar is hard . . .)

___
use-livecode mailing list
use-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: Moving object out of a group

2020-06-16 Thread doc hawk via use-livecode

Mark mumbled,

> Have I mentioned lately how much I hate the Project Browser?

I still find it far too painful to use.   

A couple of times a year to work around another bug or crash situation, but 
that’s it.
___
use-livecode mailing list
use-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: Moving object out of a group

2020-06-16 Thread Mark Wieder via use-livecode

On 6/16/20 9:02 AM, doc hawk via use-livecode wrote:


The only consistent way I have found to put something between others is to cut 
and paste *all* items of higher layer number than you want it to land at, and 
paste them back  (which would be a problem for shared groups!)


Yes. That's what I meant.

Have I mentioned lately how much I hate the Project Browser?

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Moving object out of a group

2020-06-16 Thread doc hawk via use-livecode


Mark mentioned,
> 
> The only way I can ever do something like this is with the messagebox command 
> line.

There appears to be something generally wrong when trying to manipulate the 
layers of objects when groups are involved.  I think this goes back (at least) 
to version 5.

The only consistent way I have found to put something between others is to cut 
and paste *all* items of higher layer number than you want it to land at, and 
paste them back  (which would be a problem for shared groups!) 
___
use-livecode mailing list
use-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: Build problems with 9.6

2020-06-16 Thread David V Glasgow via use-livecode


> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
> a placeholder for the actual path to your Xcode.app.


Oh boy.  Feel a bit dumb now!

Currently 10.1, downloading 11 now, just in case.

response this time 

You have new mail in /var/mail/mrdglasgow

… which was a report.  I searched for ‘error’ and there were none, but 
launching Xcode resulted in the same error as before.

Is it worth trying a build with LC, or should I install Xcode 11?

Cheers

David G
___
use-livecode mailing list
use-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: Moving object out of a group

2020-06-16 Thread Mark Wieder via use-livecode

On 6/15/20 10:00 PM, J. Landman Gay via use-livecode wrote:
Kind of, but I'm not very good at it. Look at what happened. Now I'm 
afraid to go back and try to fix it.




Not throwing shade here, but there are a few things I'd like fixed when 
you get around to it.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Build problems with 9.6

2020-06-16 Thread panagiotis merakos via use-livecode
Hello David,

Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
a placeholder for the actual path to your Xcode.app. So for example if you
have installed Xcode into your Applications folder, then the above command
should read:

sudo xcode-select -s /Applications/Xcode.app

*>>>Launching X-Code I get an unknown error with a long field of text
in the console.  Want to see it? *

If the previous command does not make any difference, then yes please :)

Which version of Xcode have you installed BTW?

Kind regards,
Panos
--

On Tue, 16 Jun 2020 at 15:04, David V Glasgow via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
>
> > On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hello David,
> >
> > Where have you installed Xcode?
> >
> > Could you try this in a terminal:
> >
> > sudo xcode-select -s /path/to/your/Xcode.app
>
>
> In response to this I get
>
> xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'
>
> Launching X-Code I get an unknown error with a long field of text in the
> console.  Want to see it?
>
> Cheers,
>
> David G
>
> >
> > Also, it might be worth opening Xcode first (in case you have never
> opened
> > it).
> >
> > Kind regards,
> > Panos
> > --
> >
> > On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Hi Panos,
> >>
> >> The tools appeared to install, but the error(s) still appear, and the
> >> standalone isn’t saved.
> >>
> >> Best wishes,
> >>
> >> David G
>
> ___
> use-livecode mailing list
> use-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: Build problems with 9.6

2020-06-16 Thread David V Glasgow via use-livecode


> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Where have you installed Xcode?
> 
> Could you try this in a terminal:
> 
> sudo xcode-select -s /path/to/your/Xcode.app


In response to this I get

xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'

Launching X-Code I get an unknown error with a long field of text in the 
console.  Want to see it? 

Cheers,

David G

> 
> Also, it might be worth opening Xcode first (in case you have never opened
> it).
> 
> Kind regards,
> Panos
> --
> 
> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Panos,
>> 
>> The tools appeared to install, but the error(s) still appear, and the
>> standalone isn’t saved.
>> 
>> Best wishes,
>> 
>> David G

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