Re: Problems with Multiple Monitors

2021-05-04 Thread Roger Guay via use-livecode
Use the plural of Screenrect … Screenrects. This returns a Screenrect for each 
monitor connected. 

Roger


> On May 4, 2021, at 5:20 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Paul Dupuis wrote:
> 
> > With multiple monitor, zero vertical is the top of the top most
> > monitor  - regardless of whether it is the primary monitor or not.
> 
> If the screenRect is no longer based on the main monitor, what is the 
> screenloc?
> 
> In a multi-monitor setup, with metrics like that how can one be expected to 
> center a window?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: Problems with Multiple Monitors

2021-05-04 Thread Richard Gaskin via use-livecode

Paul Dupuis wrote:

> With multiple monitor, zero vertical is the top of the top most
> monitor  - regardless of whether it is the primary monitor or not.

If the screenRect is no longer based on the main monitor, what is the 
screenloc?


In a multi-monitor setup, with metrics like that how can one be expected 
to center a window?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Problems with Multiple Monitors

2021-05-04 Thread Roger Guay via use-livecode
Hi Martin,

I have the same setup . . . second monitor on top of my MBP. I solved the 
problem by unchecking “Displays have separate Spaces” in the Mission Control 
System Preferences.


Roger

> On May 4, 2021, at 3:17 PM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi
> 
> I have found that when I arrange monitors on my MacBook Pro I can’t position 
> the second monitor above the main monitor(the one with the menu bar).  If I 
> do odd things happen.  Just so happens I that is the space that I have for a 
> second monitor  is on a stand above the screen of my MacBook Pro.  So I had 
> to position my second monitor to the left of my main monitor.  I am then able 
> to work on LiveCode in either monitor.  The only thing I had to do was 
> re-train my brain that moving my mouse left was actually moving it up to my 
> second monitor. Now it is second nature.
> 
> It is a really odd workaround and if the bug ever got fixed and I did in fact 
> go back to to having the monitor arrangement with the second monitor above 
> the main monitor I would probably develop carpal tunnel syndrome or maybe 
> tennis elbow or some other musculoskeletal disorder  from my mouse hand  
> skidding off the mouse pad and hitting the laptop every time I want to go to 
> the second monitor sitting above my laptop.
> 
> Martin
> 
> 
>> On May 4, 2021, at 5:46 PM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote:
>>> Anyone having problems with multiple monitors and LC? I’m running 9.6.1 - 
>>> Mac. I have a feeling LC is confused because I like to connect and 
>>> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets 
>>> confused.) But now LC is doing crazy things — even when no external 
>>> monitors are connected. I’ll move the mouse to the top of a stack window, 
>>> and ask for the Mouseloc and it will return something like "100,-60”. If I 
>>> click a button in the middle of the stack, the click will register in an 
>>> object the 60 pixels above that. It’s not always 60 — the wrongness changed 
>>> as I move the stack around. Other times it works fine. I can’t find a 
>>> pattern to set it off.
>>> 
>>> Any suggestions?
>>> Thanks.
>>> 
>>> Fred
>>> 
>>> 
>> 
>> With multiple monitor, zero vertical is the top of the top most monitor - 
>> regardless of whether it is the primary monitor or not. The on 
>> desktopChanged message may also be helpful as it is sent when the 
>> displays/monitors change
>> 
>> 
>> ___
>> 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: Problems with Multiple Monitors

2021-05-04 Thread Martin Koob via use-livecode
Hi

I have found that when I arrange monitors on my MacBook Pro I can’t position 
the second monitor above the main monitor(the one with the menu bar).  If I do 
odd things happen.  Just so happens I that is the space that I have for a 
second monitor  is on a stand above the screen of my MacBook Pro.  So I had to 
position my second monitor to the left of my main monitor.  I am then able to 
work on LiveCode in either monitor.  The only thing I had to do was re-train my 
brain that moving my mouse left was actually moving it up to my second monitor. 
Now it is second nature.

It is a really odd workaround and if the bug ever got fixed and I did in fact 
go back to to having the monitor arrangement with the second monitor above the 
main monitor I would probably develop carpal tunnel syndrome or maybe tennis 
elbow or some other musculoskeletal disorder  from my mouse hand  skidding off 
the mouse pad and hitting the laptop every time I want to go to the second 
monitor sitting above my laptop.

Martin


> On May 4, 2021, at 5:46 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote:
>> Anyone having problems with multiple monitors and LC? I’m running 9.6.1 - 
>> Mac. I have a feeling LC is confused because I like to connect and 
>> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets 
>> confused.) But now LC is doing crazy things — even when no external monitors 
>> are connected. I’ll move the mouse to the top of a stack window, and ask for 
>> the Mouseloc and it will return something like "100,-60”. If I click a 
>> button in the middle of the stack, the click will register in an object the 
>> 60 pixels above that. It’s not always 60 — the wrongness changed as I move 
>> the stack around. Other times it works fine. I can’t find a pattern to set 
>> it off.
>> 
>> Any suggestions?
>> Thanks.
>> 
>> Fred
>> 
>> 
> 
> With multiple monitor, zero vertical is the top of the top most monitor - 
> regardless of whether it is the primary monitor or not. The on desktopChanged 
> message may also be helpful as it is sent when the displays/monitors change
> 
> 
> ___
> 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: Problems with Multiple Monitors

2021-05-04 Thread Paul Dupuis via use-livecode

On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote:

Anyone having problems with multiple monitors and LC? I’m running 9.6.1 - Mac. I 
have a feeling LC is confused because I like to connect and disconnect monitors from 
my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy 
things — even when no external monitors are connected. I’ll move the mouse to the 
top of a stack window, and ask for the Mouseloc and it will return something like 
"100,-60”. If I click a button in the middle of the stack, the click will 
register in an object the 60 pixels above that. It’s not always 60 — the wrongness 
changed as I move the stack around. Other times it works fine. I can’t find a 
pattern to set it off.

Any suggestions?
Thanks.

Fred




With multiple monitor, zero vertical is the top of the top most monitor 
- regardless of whether it is the primary monitor or not. The on 
desktopChanged message may also be helpful as it is sent when the 
displays/monitors change



___
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


Problems with Multiple Monitors

2021-05-04 Thread Fred Moyer via use-livecode
Anyone having problems with multiple monitors and LC? I’m running 9.6.1 - Mac. 
I have a feeling LC is confused because I like to connect and disconnect 
monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now 
LC is doing crazy things — even when no external monitors are connected. I’ll 
move the mouse to the top of a stack window, and ask for the Mouseloc and it 
will return something like "100,-60”. If I click a button in the middle of the 
stack, the click will register in an object the 60 pixels above that. It’s not 
always 60 — the wrongness changed as I move the stack around. Other times it 
works fine. I can’t find a pattern to set it off.

Any suggestions?
Thanks.

Fred



___
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 DataGrid assistance requested

2021-05-04 Thread Mark Wieder via use-livecode

On 5/4/21 8:26 AM, Brian K. Duck via use-livecode wrote:


After adding  “Combine array using return,” I can display it as text in a 
field, but I only get the rows that aren’t array data on their own. So, most of 
the data is lost.



The combine and split commands were written in the dark ages before we 
had multidimensional arrays.


I use recursive repeat loops to untangle multidimensional arrays into an 
editable text form (pseudocode):


put the keys of tArray into tKeys
repeat for each line tKey in tKeys
 if tKey is empty then # see if it's an array
  put the keys of tKey into tSubArray
  # recurse to process the array
 else
  # it's an actual empty element
 end if
end repeat

--
 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: LiveCode DataGrid assistance requested

2021-05-04 Thread JeeJeeStudio via use-livecode

Hi Brian,


if you are using LC9.x.x then it is an Datagrid2 automatically. I don't 
know the exact lc version as of.


Make sure that you have the data item which you want to display in a 
variable first and put that in a test field or answer it, just to check 
if that is the data you need.


There are lot's of examples on the forum on how to get the desired data 
into the DG, and perhaps it's easier to put a piece of your script over 
there so people can see what you doing.


But you can also post here.

So convert JSON to LC array, then get the item into a variable. Set the 
DGdata to the variable.


In other words, test step by step what you have.


Op 4-5-2021 om 17:26 schreef Brian K. Duck via use-livecode:

Hello listers...

I’m working on an app that pulls data from a API which returns JSON and is 
converted to an array then displayed in a DataGrid.

The data returned is complex JSON, there are a few rows that are name value 
pairs, but most of the highest level rows are arrays, and there are those that 
are arrays of arrays (of arrays).

After adding  “Combine array using return,” I can display it as text in a 
field, but I only get the rows that aren’t array data on their own. So, most of 
the data is lost.

There are challenges, so I have questions….
How best to convert nested arrays to text for displaying the data within a 
field?

And, I’d like to display certain values from the DataGrid in a text field, like 
the name attribute, a URL…. The data may be in a different position, for 
different results, but the structures are consistant. Some data are attributes 
of a key value, some are the key values.
What is the best way to traverse the data to find specific values?

Also, should I be looking at the datagrid, array, or JSON for the source of 
these fields?

The current goal is an MVP where I’m displaying data, but the larger goal is 
building an editor to start with the minimal data and allow editing, publising 
as files, and further down the road submission to and API service for posting. 
So, guidance on the design with evolution in mind is much appreciated.

Also, there is a need to count elements in the array of arrays. The examples I 
see are oversimplified and don’t sow any details on finding data in array 
within an array.

Is there an example, or reference, that I missed?

Also, how can I tell if I’m working with a DataGrid or instance of DataGrid 2?

Thanks for your bandwidth,

Brian



___
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: notarizing DMG fails

2021-05-04 Thread panagiotis merakos via use-livecode
Hello Tiemo,

When did you create these certificates? And what is your MacOS version, and
the Xcode version returned if you type "xcode-select -p" in a Terminal? I
am wondering if you need to install the new Apple Worldwide Developer
Relations Intermediate Certificate:

https://developer.apple.com/support/wwdr-intermediate-certificate/

You can find it here:

https://developer.apple.com/support/expiration/

Kind regards,
Panos
--

On Tue, 4 May 2021 at 19:02, Tiemo via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Matthias,
>
> still struggeling ...
>
> I have two developer certificates in my keychain:
> Developer ID Installer : 
> Developer ID Application: 
>
> Using the Application certificate on the app and pkg and dmg, all
> codesigning is fine, even when verifying it, but I get the "The binary is
> not signed" error in the notarization log, when notarizing the dmg ???
> Using the Installer certificate on the pkg, I get already the error when
> codesigning the pkg "this identity cannot be used for signing code" ???
>
> All errors are the same, either using the tool "Packages" or creating the
> package on command line by pkgbuild
> (productbuild is only for builing appStore apps, as far as I see it)
>
> I must be missing something obvious
>
> Any other ideas?
> Tiemo
>
>
> -Ursprüngliche Nachricht-
> Von: use-livecode  Im Auftrag von
> matthias rebbe via use-livecode
> Gesendet: Dienstag, 4. Mai 2021 13:49
> An: How to use LiveCode 
> Cc: matthias_livecode_150...@m-r-d.de
> Betreff: Re: notarizing DMG fails
>
> Tiemo,
>
> you can create 2 different installer certificates in you Apple developer
> account.
> One is called 'Mac Installer Distribution' and is used for code signing
> installers for the Mac App Store.
> The other one is called 'Developer ID Installer' and is used to code sign
> your  Installer Package for distribution outside of the Mac App Store
>
> Which one did you use for signing the packager?
>
> And another question, how did you build the package? Did you use a 3rd
> party tool or did you use 'productbuild' in Terminal?
> If you used a 3rd party tool, then could you please try to create the
> package installer using terminal command?
>
> productbuild --sign  --component
>  /Applications 
>
> example
> productbuild --sign "Developer ID Installer: Matthias Rebbe
> (x)" --component "/users/matthias/LC/builts/test/test.app"
> /Applications "/users/matthias/downloads/MyPackager.pkg"
>
>
> But maybe it was just the wrong installer certificate
>
> Regards
> Matthias
>
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hi Matthias,
> >
> > thank you for your ideas. I tried both.
> >
> > When using just signed, but not notarized apps, packing, signing the
> > pkg, wrapping into dmg, signing the dmg, I get the same error when
> > notarizing the dmg "The binary is not signed"
> >
> > When trying to notarize the signed pkg via terminal I get the error:
> > "unable to  notarize app"
> > "Upload succeeded but did not receive a RequestedUUID. Unable to
> > upload your app for notarization (-1018)"
> >
> > I also tried to use the "Installer" certificate instead of the
> "Application"
> > certificate, but trying this with codesigning the package, I get the
> > error "this identitiy cannot be used"
> > (actually I don't know for what purposes you can use the Installer
> > certificate)
> >
> >
> > Codesigning and notarizing the apps works fine ...
> >
> > Perhaps I'll look for another packager and go testing with another
> packager.
> >
> > Any other ideas?
> > Tiemo
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: use-livecode  Im Auftrag
> > von matthias rebbe via use-livecode
> > Gesendet: Dienstag, 4. Mai 2021 10:34
> > An: How to use LiveCode 
> > Cc: matthias_livecode_150...@m-r-d.de
> > Betreff: Re: notarizing DMG fails
> >
> > Hi Tiemo,
> >
> > but you did not create a .pkg from the a notarized app, did you?
> >
> > You have to create and code sign a .pkg from the code signed, but not
> > notarized, .app  and then you have to notarize only the .pkg or the
> > code signed .dmg, if you want to distribute as .dmg.
> > So the steps are
> >
> > 1. code sign your .app - do not notarize it!
> > 2. create a .pkg from the .app and code sign it 3. if you want to
> > distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4.
> > notarize the .pkg (or the .dmg)
> >
> > The staple process then writes the needed information to the .dmg, to
> > the containing .pkg and the .app.
> >
> > If these are the steps you've done already, then could you please try
> > the following using the helper stack
> >
> > 1. code sign .app
> > 2. notarize the .app using the '.zip method'
> >
> > Is this successful? Then the problem does not rely on your .app.
> > In this case please repeat and code sign the .app using the helper
> > stack and use the .dmg method
> >
> > 

AW: notarizing DMG fails

2021-05-04 Thread Tiemo via use-livecode
Hi Matthias,

still struggeling ...

I have two developer certificates in my keychain:
Developer ID Installer : 
Developer ID Application: 

Using the Application certificate on the app and pkg and dmg, all codesigning 
is fine, even when verifying it, but I get the "The binary is not signed" error 
in the notarization log, when notarizing the dmg ???
Using the Installer certificate on the pkg, I get already the error when 
codesigning the pkg "this identity cannot be used for signing code" ???

All errors are the same, either using the tool "Packages" or creating the 
package on command line by pkgbuild
(productbuild is only for builing appStore apps, as far as I see it)

I must be missing something obvious

Any other ideas?
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode  Im Auftrag von 
matthias rebbe via use-livecode
Gesendet: Dienstag, 4. Mai 2021 13:49
An: How to use LiveCode 
Cc: matthias_livecode_150...@m-r-d.de
Betreff: Re: notarizing DMG fails

Tiemo,

you can create 2 different installer certificates in you Apple developer 
account.
One is called 'Mac Installer Distribution' and is used for code signing 
installers for the Mac App Store.
The other one is called 'Developer ID Installer' and is used to code sign your  
Installer Package for distribution outside of the Mac App Store

Which one did you use for signing the packager?

And another question, how did you build the package? Did you use a 3rd party 
tool or did you use 'productbuild' in Terminal?
If you used a 3rd party tool, then could you please try to create the package 
installer using terminal command?

productbuild --sign  --component 
 /Applications 

example
productbuild --sign "Developer ID Installer: Matthias Rebbe (x)" 
--component "/users/matthias/LC/builts/test/test.app"  /Applications 
"/users/matthias/downloads/MyPackager.pkg"


But maybe it was just the wrong installer certificate

Regards
Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode 
> :
> 
> Hi Matthias,
> 
> thank you for your ideas. I tried both.
> 
> When using just signed, but not notarized apps, packing, signing the 
> pkg, wrapping into dmg, signing the dmg, I get the same error when 
> notarizing the dmg "The binary is not signed"
> 
> When trying to notarize the signed pkg via terminal I get the error:
> "unable to  notarize app"
> "Upload succeeded but did not receive a RequestedUUID. Unable to 
> upload your app for notarization (-1018)"
> 
> I also tried to use the "Installer" certificate instead of the "Application"
> certificate, but trying this with codesigning the package, I get the 
> error "this identitiy cannot be used"
> (actually I don't know for what purposes you can use the Installer
> certificate)
> 
> 
> Codesigning and notarizing the apps works fine ...
> 
> Perhaps I'll look for another packager and go testing with another packager.
> 
> Any other ideas?
> Tiemo
> 
> 
> -Ursprüngliche Nachricht-
> Von: use-livecode  Im Auftrag 
> von matthias rebbe via use-livecode
> Gesendet: Dienstag, 4. Mai 2021 10:34
> An: How to use LiveCode 
> Cc: matthias_livecode_150...@m-r-d.de
> Betreff: Re: notarizing DMG fails
> 
> Hi Tiemo,
> 
> but you did not create a .pkg from the a notarized app, did you?
> 
> You have to create and code sign a .pkg from the code signed, but not 
> notarized, .app  and then you have to notarize only the .pkg or the 
> code signed .dmg, if you want to distribute as .dmg.
> So the steps are
> 
> 1. code sign your .app - do not notarize it!
> 2. create a .pkg from the .app and code sign it 3. if you want to 
> distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. 
> notarize the .pkg (or the .dmg)
> 
> The staple process then writes the needed information to the .dmg, to 
> the containing .pkg and the .app.
> 
> If these are the steps you've done already, then could you please try 
> the following using the helper stack
> 
> 1. code sign .app
> 2. notarize the .app using the '.zip method'
> 
> Is this successful? Then the problem does not rely on your .app. 
> In this case please repeat and code sign the .app using the helper 
> stack and use the .dmg method
> 
> Is this successful? If so, then also the .dmg is fine
> 
> Repeat now manually, as .pkg is not supported by the helper stack.
> 
> 1. code sign .app
> 2. create .pkg
> 3. code sign .pkg
> 4. notarize .pkg
> 
> Is this successful?
> 
> Regards,
> 
> Matthias
> 
> 
> 
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode
> :
>> 
>> Hello,
>> 
>> 
>> 
>> I have signed and notarized several apps with Matthias tool - 
>> successful
>> 
>> Then I packaged theses apps with Packages and signed the package via 
>> terminal - successful
>> 
>> Then I  put the pkg into a dmg via DMG canvas and signed the dmg via 
>> terminal - successful
>> 
>> Then I uploaded the dmg for notarization via 

LiveCode DataGrid assistance requested

2021-05-04 Thread Brian K. Duck via use-livecode
Hello listers...

I’m working on an app that pulls data from a API which returns JSON and is 
converted to an array then displayed in a DataGrid.

The data returned is complex JSON, there are a few rows that are name value 
pairs, but most of the highest level rows are arrays, and there are those that 
are arrays of arrays (of arrays).

After adding  “Combine array using return,” I can display it as text in a 
field, but I only get the rows that aren’t array data on their own. So, most of 
the data is lost.

There are challenges, so I have questions….
How best to convert nested arrays to text for displaying the data within a 
field?

And, I’d like to display certain values from the DataGrid in a text field, like 
the name attribute, a URL…. The data may be in a different position, for 
different results, but the structures are consistant. Some data are attributes 
of a key value, some are the key values.
What is the best way to traverse the data to find specific values?

Also, should I be looking at the datagrid, array, or JSON for the source of 
these fields?

The current goal is an MVP where I’m displaying data, but the larger goal is 
building an editor to start with the minimal data and allow editing, publising 
as files, and further down the road submission to and API service for posting. 
So, guidance on the design with evolution in mind is much appreciated.

Also, there is a need to count elements in the array of arrays. The examples I 
see are oversimplified and don’t sow any details on finding data in array 
within an array.

Is there an example, or reference, that I missed?

Also, how can I tell if I’m working with a DataGrid or instance of DataGrid 2?

Thanks for your bandwidth,

Brian 



___
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: notarizing DMG fails

2021-05-04 Thread matthias rebbe via use-livecode
Tiemo,

you can create 2 different installer certificates in you Apple developer 
account.
One is called 'Mac Installer Distribution' and is used for code signing 
installers for the Mac App Store.
The other one is called 'Developer ID Installer' and is used to code sign your  
Installer Package for distribution outside of the Mac App Store

Which one did you use for signing the packager?

And another question, how did you build the package? Did you use a 3rd party 
tool or did you use 'productbuild' in Terminal?
If you used a 3rd party tool, then could you please try to create the package 
installer using terminal command?

productbuild --sign  --component 
 /Applications 

example
productbuild --sign "Developer ID Installer: Matthias Rebbe (x)" 
--component "/users/matthias/LC/builts/test/test.app"  /Applications 
"/users/matthias/downloads/MyPackager.pkg"


But maybe it was just the wrong installer certificate

Regards
Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode 
> :
> 
> Hi Matthias,
> 
> thank you for your ideas. I tried both.
> 
> When using just signed, but not notarized apps, packing, signing the pkg,
> wrapping into dmg, signing the dmg, I get the same error when notarizing the
> dmg "The binary is not signed"
> 
> When trying to notarize the signed pkg via terminal I get the error:
> "unable to  notarize app"
> "Upload succeeded but did not receive a RequestedUUID. Unable to upload your
> app for notarization (-1018)"
> 
> I also tried to use the "Installer" certificate instead of the "Application"
> certificate, but trying this with codesigning the package, I get the error
> "this identitiy cannot be used"
> (actually I don't know for what purposes you can use the Installer
> certificate)
> 
> 
> Codesigning and notarizing the apps works fine ...
> 
> Perhaps I'll look for another packager and go testing with another packager.
> 
> Any other ideas?
> Tiemo
> 
> 
> -Ursprüngliche Nachricht-
> Von: use-livecode  Im Auftrag von
> matthias rebbe via use-livecode
> Gesendet: Dienstag, 4. Mai 2021 10:34
> An: How to use LiveCode 
> Cc: matthias_livecode_150...@m-r-d.de
> Betreff: Re: notarizing DMG fails
> 
> Hi Tiemo,
> 
> but you did not create a .pkg from the a notarized app, did you?
> 
> You have to create and code sign a .pkg from the code signed, but not
> notarized, .app  and then you have to notarize only the .pkg or the code
> signed .dmg, if you want to distribute as .dmg.
> So the steps are
> 
> 1. code sign your .app - do not notarize it!
> 2. create a .pkg from the .app and code sign it 3. if you want to distribute
> as dmg, create .dmg with the .pkg and code sign the .dmg 4. notarize the
> .pkg (or the .dmg)
> 
> The staple process then writes the needed information to the .dmg, to the
> containing .pkg and the .app.
> 
> If these are the steps you've done already, then could you please try the
> following using the helper stack
> 
> 1. code sign .app
> 2. notarize the .app using the '.zip method'
> 
> Is this successful? Then the problem does not rely on your .app. 
> In this case please repeat and code sign the .app using the helper stack and
> use the .dmg method
> 
> Is this successful? If so, then also the .dmg is fine
> 
> Repeat now manually, as .pkg is not supported by the helper stack.
> 
> 1. code sign .app
> 2. create .pkg
> 3. code sign .pkg
> 4. notarize .pkg
> 
> Is this successful?
> 
> Regards,
> 
> Matthias
> 
> 
> 
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode
> :
>> 
>> Hello,
>> 
>> 
>> 
>> I have signed and notarized several apps with Matthias tool - 
>> successful
>> 
>> Then I packaged theses apps with Packages and signed the package via 
>> terminal - successful
>> 
>> Then I  put the pkg into a dmg via DMG canvas and signed the dmg via 
>> terminal - successful
>> 
>> Then I uploaded the dmg for notarization via terminal. The upload was 
>> successful, but the email from apple told me, that the upload was not 
>> notarized and the logfile tells me:
>> 
>> 
>> 
>> Severity: Error
>> 
>> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg"
>> 
>> Message: The binary is not signed
>> 
>> 
>> 
>> This is a bit irritating. Has anybody anytime encountered such 
>> conflicting messages?
>> 
>> Any idea, where to look for?
>> 
>> Thanks
>> 
>> Tiemo
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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:
> 

AW: notarizing DMG fails

2021-05-04 Thread Tiemo via use-livecode
Hi Matthias,

thank you for your ideas. I tried both.

When using just signed, but not notarized apps, packing, signing the pkg,
wrapping into dmg, signing the dmg, I get the same error when notarizing the
dmg "The binary is not signed"

When trying to notarize the signed pkg via terminal I get the error:
"unable to  notarize app"
"Upload succeeded but did not receive a RequestedUUID. Unable to upload your
app for notarization (-1018)"

I also tried to use the "Installer" certificate instead of the "Application"
certificate, but trying this with codesigning the package, I get the error
"this identitiy cannot be used"
(actually I don't know for what purposes you can use the Installer
certificate)


Codesigning and notarizing the apps works fine ...

Perhaps I'll look for another packager and go testing with another packager.

Any other ideas?
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode  Im Auftrag von
matthias rebbe via use-livecode
Gesendet: Dienstag, 4. Mai 2021 10:34
An: How to use LiveCode 
Cc: matthias_livecode_150...@m-r-d.de
Betreff: Re: notarizing DMG fails

Hi Tiemo,

but you did not create a .pkg from the a notarized app, did you?

You have to create and code sign a .pkg from the code signed, but not
notarized, .app  and then you have to notarize only the .pkg or the code
signed .dmg, if you want to distribute as .dmg.
So the steps are

1. code sign your .app - do not notarize it!
2. create a .pkg from the .app and code sign it 3. if you want to distribute
as dmg, create .dmg with the .pkg and code sign the .dmg 4. notarize the
.pkg (or the .dmg)

The staple process then writes the needed information to the .dmg, to the
containing .pkg and the .app.

If these are the steps you've done already, then could you please try the
following using the helper stack

1. code sign .app
2. notarize the .app using the '.zip method'

Is this successful? Then the problem does not rely on your .app. 
In this case please repeat and code sign the .app using the helper stack and
use the .dmg method

Is this successful? If so, then also the .dmg is fine

Repeat now manually, as .pkg is not supported by the helper stack.

1. code sign .app
2. create .pkg
3. code sign .pkg
4. notarize .pkg

Is this successful?

Regards,

Matthias






-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode
:
> 
> Hello,
> 
> 
> 
> I have signed and notarized several apps with Matthias tool - 
> successful
> 
> Then I packaged theses apps with Packages and signed the package via 
> terminal - successful
> 
> Then I  put the pkg into a dmg via DMG canvas and signed the dmg via 
> terminal - successful
> 
> Then I uploaded the dmg for notarization via terminal. The upload was 
> successful, but the email from apple told me, that the upload was not 
> notarized and the logfile tells me:
> 
> 
> 
> Severity: Error
> 
> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg"
> 
> Message: The binary is not signed
> 
> 
> 
> This is a bit irritating. Has anybody anytime encountered such 
> conflicting messages?
> 
> Any idea, where to look for?
> 
> Thanks
> 
> Tiemo
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 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: Getting user's IP address in LC Server

2021-05-04 Thread Tim Selander via use-livecode

Hi Matthias!

Works like a charm -- didn't even occur to me to check the server 
variable for IP. (yeah, amateur!)


Thank you.

Tim Selander
Tokyo

On 2021.05.04 16:48, matthias rebbe via use-livecode wrote:

Hi Tim,

you can use the array variable $_SERVER for it. The variable contains the CGI 
interface related variables, along with any HTTP_* variables that are available.


$_SERVER["REMOTE_ADDR] contains the remote ip address.


Matthias

-
Matthias Rebbe
Life Is Too Short For Boring Code


Am 04.05.2021 um 06:30 schrieb Tim Selander via use-livecode 
:

Hi,

I am trying to make a web page that changes content a bit based on the user's 
location. I am using my on-rev hosting account and am trying two different 
service's APIs:

1) put "My country is" && url 
"https://api.ipdata.co/country_name?api-key=my/key;

2) put "curl https://api.ipgeolocation.io/getip; into IPvariable

But both of these return the info for Liquid Web LLC, the on-rev server 
company, not the info for me as I test the page in Tokyo.

What is a reliable way to get the user's IP address and or geolocation info 
from LC Server?

Any help appreciated!

Thanks,

Tim Selander
Tokyo

___
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: notarizing DMG fails

2021-05-04 Thread matthias rebbe via use-livecode
Hi Tiemo,

but you did not create a .pkg from the a notarized app, did you?

You have to create and code sign a .pkg from the code signed, but not 
notarized, .app  and then you have to notarize only the .pkg or the code signed 
.dmg, if you want to distribute as .dmg.
So the steps are

1. code sign your .app - do not notarize it!
2. create a .pkg from the .app and code sign it
3. if you want to distribute as dmg, create .dmg with the .pkg and code sign 
the .dmg
4. notarize the .pkg (or the .dmg)

The staple process then writes the needed information to the .dmg, to the 
containing .pkg and the .app.

If these are the steps you've done already, then could you please try the 
following using the helper stack

1. code sign .app
2. notarize the .app using the '.zip method'

Is this successful? Then the problem does not rely on your .app. 
In this case please repeat and code sign the .app using the helper stack and 
use the .dmg method

Is this successful? If so, then also the .dmg is fine

Repeat now manually, as .pkg is not supported by the helper stack.

1. code sign .app
2. create .pkg
3. code sign .pkg
4. notarize .pkg

Is this successful?

Regards,

Matthias






-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode 
> :
> 
> Hello,
> 
> 
> 
> I have signed and notarized several apps with Matthias tool - successful
> 
> Then I packaged theses apps with Packages and signed the package via
> terminal - successful
> 
> Then I  put the pkg into a dmg via DMG canvas and signed the dmg via
> terminal - successful
> 
> Then I uploaded the dmg for notarization via terminal. The upload was
> successful, but the email from apple told me, that the upload was not
> notarized and the logfile tells me:
> 
> 
> 
> Severity: Error
> 
> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg"
> 
> Message: The binary is not signed
> 
> 
> 
> This is a bit irritating. Has anybody anytime encountered such conflicting
> messages?
> 
> Any idea, where to look for?
> 
> Thanks
> 
> Tiemo
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 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: Getting user's IP address in LC Server

2021-05-04 Thread matthias rebbe via use-livecode
Hi Tim,

you can use the array variable $_SERVER for it. The variable contains the CGI 
interface related variables, along with any HTTP_* variables that are available.


$_SERVER["REMOTE_ADDR] contains the remote ip address.


Matthias

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2021 um 06:30 schrieb Tim Selander via use-livecode 
> :
> 
> Hi,
> 
> I am trying to make a web page that changes content a bit based on the user's 
> location. I am using my on-rev hosting account and am trying two different 
> service's APIs:
> 
> 1) put "My country is" && url 
> "https://api.ipdata.co/country_name?api-key=my/key;
> 
> 2) put "curl https://api.ipgeolocation.io/getip; into IPvariable
> 
> But both of these return the info for Liquid Web LLC, the on-rev server 
> company, not the info for me as I test the page in Tokyo.
> 
> What is a reliable way to get the user's IP address and or geolocation info 
> from LC Server?
> 
> Any help appreciated!
> 
> Thanks,
> 
> Tim Selander
> Tokyo
> 
> ___
> 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


notarizing DMG fails

2021-05-04 Thread Tiemo via use-livecode
Hello,

 

I have signed and notarized several apps with Matthias tool - successful

Then I packaged theses apps with Packages and signed the package via
terminal - successful

Then I  put the pkg into a dmg via DMG canvas and signed the dmg via
terminal - successful

Then I uploaded the dmg for notarization via terminal. The upload was
successful, but the email from apple told me, that the upload was not
notarized and the logfile tells me:

 

Severity: Error

Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg"

Message: The binary is not signed

 

This is a bit irritating. Has anybody anytime encountered such conflicting
messages?

Any idea, where to look for?

Thanks

Tiemo

 

 

 

 

 

___
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