Search found 802 matches

by Mag
Fri Dec 02, 2016 2:46 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?

The app opens different sub-stacks each of them is a copy of the main stack I use as matrix. The group of menu buttons is in that stack, so each window has the group of menu buttons. When the menu don't work you can choose the menu item which it become selected but no action is followed and this is ...
by Mag
Fri Dec 02, 2016 2:24 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 that way, unfortunately some times it don't work. on preOpenStack if the environment is "standalone application" then set the defaultMenubar to "AppMenubar" -- set the defaultMenubar to the long ID of group "AppMenubar" of this stack -- set the menubar of this stack to "AppMenubar" end if en...
by Mag
Thu Dec 01, 2016 3:02 pm
Forum: Mac OS
Topic: Go to card and preOpenCard message
Replies: 8
Views: 4953

Re: Go to card and preOpenCard message

Thank you Jacqueline!
by Mag
Sat Nov 26, 2016 9:59 am
Forum: Mac OS
Topic: App with documents
Replies: 19
Views: 6249

Re: App with documents

Is the file being saved a user document file, or something that your program uses internally? If the former guess you can always prepend something to the stack name when it's loaded and then remove it when the stack is being saved.. If the latter are you saving it to the Application Support folder ...
by Mag
Fri Nov 25, 2016 10:16 pm
Forum: Mac OS
Topic: How to handle file stacks with an integer as name?
Replies: 12
Views: 4307

Re: How to handle file stacks with an integer as name?

My problem is with documents that the user creates (which can be open it with a double click on the Finder)... :oops: The file name of a stack file need not be the same as the names of the mainstack and any substacks within it. If you need to ensure unique names for stack objects within a stack fil...
by Mag
Fri Nov 25, 2016 8:35 pm
Forum: Mac OS
Topic: How to handle file stacks with an integer as name?
Replies: 12
Views: 4307

Re: How to handle file stacks with an integer as name?

My problem is with documents that the user creates (which can be open it with a double click on the Finder)... :oops:
by Mag
Fri Nov 25, 2016 8:20 pm
Forum: Mac OS
Topic: How to handle file stacks with an integer as name?
Replies: 12
Views: 4307

Re: How to handle file stacks with an integer as name?

The script can check the name the user enters and if it is a single integer, put up a second dialog telling them that the name must include at least one alphabetic character. A second method would be for the script to add its own identifier. So if the user enters 2, the script would name the stack ...
by Mag
Fri Nov 25, 2016 8:17 pm
Forum: Mac OS
Topic: What is the correct way to install the menubar on Mac?
Replies: 8
Views: 3708

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

I created the menubar item with Menu Builder. Currently I use this code to install it: if the environment is "standalone application" then set the menubar of this stack to "AppMenubar" end if All works well, but, sometimes, maybe after I move to another stack, I choose a menu item and it don't wok.
by Mag
Fri Nov 25, 2016 4:30 pm
Forum: Mac OS
Topic: App with documents
Replies: 19
Views: 6249

Re: App with documents

Hi Mag, why not use a (invisible) Livecode stack? Gazillion of storing possibilities with its custom properties and custom property sets! :D Best Klaus I tried this approach and it's great, thank you for the suggestion. My only problem now is when user choose an integer as name for the file (or cha...
by Mag
Fri Nov 25, 2016 4:25 pm
Forum: Mac OS
Topic: How to save an alias of a file in a stack?
Replies: 7
Views: 3436

Re: How to save a file in a stack?

Hi Mag, store an "alias" (= just the pathname!): ... set the cAlias2File of this stack to "/Users/klaus/Desktop/fingers.jpg" ... Store an actual file: ... set the cActualFile of this stack to url("binfile:" & specialfolderpath("desktop") & "/fingers.jpg") ... "Spit" it out again: ... put the cActua...
by Mag
Thu Nov 24, 2016 6:49 pm
Forum: Mac OS
Topic: How to handle file stacks with an integer as name?
Replies: 12
Views: 4307

Re: Using stacks with an integer as name

Thank you for the info. Anyway I'm using stack files ad app documents (they only store properties and I open them invisible when user double click them on the Finder only for read and write properties), so users have to have them available on the disk as icon to open them, share, delete and so on...
by Mag
Thu Nov 24, 2016 4:59 pm
Forum: Mac OS
Topic: How to handle file stacks with an integer as name?
Replies: 12
Views: 4307

Re: create invisible stack "2"

Thank you Craig. The name entered by the user is used for naming a file saved on disk, so I haven't the possibility to use a different name from the one assigned to the user. What's more the user can change the name of the stack in the Finder. Having not control over the name of the stack file, is t...
by Mag
Thu Nov 24, 2016 3:08 pm
Forum: Mac OS
Topic: How to handle file stacks with an integer as name?
Replies: 12
Views: 4307

How to handle file stacks with an integer as name?

I noticed that If i assign to a new stack a number, for example 2, then I have problems to handle it because LC thinks that I'm talking of the stack 2, not the stack with the short name "2". create invisible stack "2" If is it a limit of LC, is there a way to avoid this? I can't choice the name beca...
by Mag
Fri Nov 11, 2016 11:03 am
Forum: Mac OS
Topic: How to know if there is an app already open?
Replies: 1
Views: 1426

How to know if there is an app already open?

When you have more than one copy of an app in your disk, can happen to open two of them. How to know if there is an (LiveCode made) app already open and avoid to open a new one? :oops:
by Mag
Fri Nov 11, 2016 11:01 am
Forum: Mac OS
Topic: How to save an alias of a file in a stack?
Replies: 7
Views: 3436

Re: How to save a file in a stack?

Thank you so much Craig, I will go with the use of "there is a" operator :)

Go to advanced search