Page 1 of 1

differences win->mac os?

Posted: Mon May 30, 2011 6:24 am
by Tomka
Hi there,

my second question today: First I have to describe my system:

1.: Win7 on a bootable bootcamp-part an a MacBook Pro. LiveCode 4.6.1 ...
2.: MacOS X 10.6 (I think... its still updated)... on the same machine... Livecode 4.6.1

I got a livecode-program which open a substack which is saved in a seperate file:

Code: Select all

on mouseUp
   close this stack
   go stack "Substacks/Main_App.livecode"
end mouseUp
It works quite well on windows but I copied the whole dir to macOS x. Open the program in livecode - it starts without any problems but it doesnt open the substack from file. :(

Re: differences win->mac os?

Posted: Fri Jun 03, 2011 11:40 am
by Mark
Tomka,

Probably, the script stops when you close the stack. Does this work for you?

Code: Select all

on mouseUp
   put the long id of this stack into myStack
   go stack "Substacks/Main_App.livecode"
   close myStack
end mouseUp
It might be even better to use a separate stack file as a library, which stays open at all times. Instead of the mouseUp handler, use a different handler that can be called from a mouseUp handler.

Best,

Mark

Re: differences win->mac os?

Posted: Fri Jun 03, 2011 11:07 pm
by Tomka
the seperate stack which will be loaded can be changed because if the user wants to load a stack he saved in a former session.

but ill change the close.comand and check this out. seems really like a little mistake :)

Re: differences win->mac os?

Posted: Sat Jun 04, 2011 9:31 pm
by jacque
Mac and windows standalones use slightly different paths depending on what you need to do. I suspect it's a path issue. I can post an example when I'm back on my Mac.

Back now. Did you include the substack folder in the Copy Files pane of the standalone builder? If so, your folder may be inside the application bundle on a Mac, and that would be a different file path than the one you are currently using. So -- can you see the folder in the Finder without opening the application bundle?