Standalone application settings Mac sql,SSL ,sqlite

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
razvan
Posts: 19
Joined: Tue Feb 24, 2015 10:16 am

Standalone application settings Mac sql,SSL ,sqlite

Post by razvan » Thu Sep 17, 2015 7:22 am

Hello!
Can someone write the steps for build a application for Mac?
I tried with this configure [img]
standalone app.JPG
[/img]
This is working for windows but for Mac don't work correctly.
Thank you!
Razvan

Klaus
Posts: 13828
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Standalone application settings Mac sql,SSL ,sqlite

Post by Klaus » Fri Sep 25, 2015 2:04 pm

Hi razvan,

1. this is the general (NON platform specific) TAB in the standalone builder!?
2. What do you check on the "Mac" tab?
3. What exactly does "don't work correctly" mean? 8)


Best

Klaus

razvan
Posts: 19
Joined: Tue Feb 24, 2015 10:16 am

Re: Standalone application settings Mac sql,SSL ,sqlite

Post by razvan » Fri Oct 09, 2015 8:09 am

I find out where is the problem.The problem is on mergJSON.I used mergJSON-Commercial-1.0.20.
The build it's working well on Androi and Windows but when I try it on MAC OS this one is stuck here:

Code: Select all

function JSONToArray pJSON
   local tArray,tKeys
   repeat for each line tKey in [u]mergJSONDecode[/u](pJSON,"tArray")
      put JSONToArray(tArray[tKey]) into tArray[tKey]
   end repeat
   return tArray
end JSONToArray

My all code is here:

Code: Select all

on mouseUp
   global id_crt
   put url "http://www.yes-we-move.com/APILog/users/getpass" into tweb
   if tweb is not empty then 
      put ConvertJSON(tweb) into output
      repeat for each key tKey in output
         put output[ tKey ][ "username" ] into  gUsers
      end repeat
    put gUsers into field "test"
   end if

end mouseUp


function ConvertJSON jsonData
   if the first char of jsonData is "[" then
      replace "[" with ""  in jsonData
      replace "]" with ""  in jsonData
      set the itemdelimiter to  "},"
      
      local tReturn
      put 0 into inc
      repeat for each item i in jsonData
         add 1 to inc
         if the last char of i is  "}"
         then
            delete the last char of i
         end if
         put i & "}" into pJSON
         put JSONToArray(pJSON) into tOut
         put tOut into tReturn [inc]
      end repeat
      return tReturn
   else
      put JSONToArray(jsonData) into tOut
      return tOut
   end if
end ConvertJSON

function JSONToArray pJSON
   local tArray,tKeys
   repeat for each line tKey in mergJSONDecode(pJSON,"tArray")
      put JSONToArray(tArray[tKey]) into tArray[tKey]
   end repeat
   return tArray
end JSONToArray
If someone knows how to fix it please help me.
Thank you!
Razvan.

razvan
Posts: 19
Joined: Tue Feb 24, 2015 10:16 am

Re: Standalone application settings Mac sql,SSL ,sqlite

Post by razvan » Fri May 20, 2016 9:52 am

The Issue was in folder Runtime,I forgot to add mergJSON external there.
Thanks.

Post Reply

Return to “Mac OS”