Search found 802 matches

by Mag
Sun Jan 08, 2017 11:08 am
Forum: Mac OS
Topic: Sandboxing a Mac application - Save as dialog
Replies: 8
Views: 4009

Re: Sandboxing a Mac application - Save as dialog

Since on the Mac extensions are mainly for compatibility, maybe I should leave free the user not to use them and rely only on mime type and creator of the file?

Code: Select all

set the stackFileType to "myapMYDC"
by Mag
Sun Jan 08, 2017 2:25 am
Forum: Mac OS
Topic: Sandboxing a Mac application - Save as dialog
Replies: 8
Views: 4009

Re: Sandboxing a Mac application - Save as dialog

Hi Craig, unfortunately once the app is sandboxed, you can only use the file that user specifies. :(
by Mag
Sat Jan 07, 2017 8:12 pm
Forum: Mac OS
Topic: Sandboxing a Mac application - Save as dialog
Replies: 8
Views: 4009

Sandboxing a Mac application - Save as dialog

When you sandbox an app for Mac, your app have to use the standard OS dialog box to save a file on the disk. In LiveCode you use: ask file "Please name the file:" In this way the OS let you create the file in the location user chosen with the name chosen by the user, e.g /HD/Data Stacks/filedata.rev...
by Mag
Sat Dec 17, 2016 1:54 pm
Forum: Mac OS
Topic: What is the correct way to install the menubar on Mac?
Replies: 8
Views: 3708

Re: What is the correct way to install the menubar on Mac?

Done in this way, all work fine now, thank you!
by Mag
Sat Dec 17, 2016 1:49 pm
Forum: Mac OS
Topic: App with documents
Replies: 19
Views: 6249

Re: App with documents

Hi shaosean, really interesting info. I will do some tests.
by Mag
Sat Dec 17, 2016 1:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Handle the window's close button on Mac
Replies: 3
Views: 1644

Re: Handle the window's close button on Mac

Thank you, I handled all in closestackrequest as you suggested Klaus.

PS
I richmond62, sorry, I made a bit of confusion describing my problem... :oops: fortunately Klaus was able to read between the lines ...
by Mag
Sat Dec 17, 2016 11:34 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to save a stack file in the sandbox era?
Replies: 4
Views: 1562

Re: How to save a stack file in the sandbox era?

Maybe I could ask for a name first, and then prompt with a save file dialog with the chosen name...
by Mag
Fri Dec 16, 2016 8:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Handle the window's close button on Mac
Replies: 3
Views: 1644

Handle the window's close button on Mac

I'm having some difficulties to handle the close box button on Mac app, I would like it does the same as when user uses the Command-W menu item but I can't find a reliable way. To date my trials was with the on closeStack message but this creates a cascading series of problems, you can imagine... Th...
by Mag
Wed Dec 14, 2016 7:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to save a stack file in the sandbox era?
Replies: 4
Views: 1562

Re: How to save a stack file in the sandbox era?

Its me messier! :-)

Thank you for your precious suggestion, I will implement it in the not-sandboxed version.

About the sandboxed version there is a problem: you need that the save as dialog returns a path with the extension, you cannot add it later.


:-(
by Mag
Wed Dec 14, 2016 6:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to save a stack file in the sandbox era?
Replies: 4
Views: 1562

How to save a stack file in the sandbox era?

I'm working on an app for Mac were the user can save a stack file on disk via the ask file dialog of LiveCode. ask file "Save This File As:" with the title of stack stackName & ".abc" as sheet -- in a sandboxed app you need that the save as dialog returns a path with the extension, you cannot add it...
by Mag
Wed Dec 14, 2016 6:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How stop iTunes playing in a sandboxed app?
Replies: 2
Views: 951

How stop iTunes playing in a sandboxed app?

I'm working in a Mac project where I need to stop iTunes playing. Currently I use this code: put field "StopiTunesScript" into tTheScript do tTheScript as applescript This is the content of the field: tell application "iTunes" if it is running then -- to avoid to open iTunes if it is not running sto...
by Mag
Tue Dec 13, 2016 4:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Listing all the stacks that make up a stack
Replies: 2
Views: 796

Re: Listing all the stacks that make up a stack

Thank you Gerrie, it's exactly what I was searching for.
by Mag
Tue Dec 13, 2016 11:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Listing all the stacks that make up a stack
Replies: 2
Views: 796

Listing all the stacks that make up a stack

When you deal with external file stacks you have a lot of new things to keep in count, for example you cannot open a file stack that has the same name of a stack you use in your project because they can conflict (another one is that you cannot open file stacks with a integer as name because can conf...
by Mag
Fri Dec 02, 2016 3:16 pm
Forum: Mac OS
Topic: What is the correct way to install the menubar on Mac?
Replies: 8
Views: 3708

Re: What is the correct way to install the menubar on Mac?

Unfortunately the menubars/group of buttons is in the main stack and I clone the main stack to have instances of the window in my app (each window is an open document).

Code: Select all

clone invisible stack "Matrix"

Go to advanced search