differences win->mac os?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

differences win->mac os?

Post by Tomka » Mon May 30, 2011 6:24 am

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. :(

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: differences win->mac os?

Post by Mark » Fri Jun 03, 2011 11:40 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Re: differences win->mac os?

Post by Tomka » Fri Jun 03, 2011 11:07 pm

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 :)

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7391
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: differences win->mac os?

Post by jacque » Sat Jun 04, 2011 9:31 pm

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?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply