Create an app that handles documents

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Create an app that handles documents

Post by Mag » Sun May 18, 2014 12:39 pm

Hi all!

I would like to create an OS X app that can handle documents. Each document can be opened in a different window.

My idea is to create a stack that is build as standalone and is keep invisible, this stack should work as a template. Every time the user creates a document I would create a clone of that stack and save it as stack file. So I have a certain number of questions and dubts... :oops:

First problem, how to accomplish that when the user double clicks the stack file on disk, the .app is opened?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9432
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Create an app that handles documents

Post by richmond62 » Sun May 18, 2014 1:13 pm

I think the first thing you have to do is to set the Document Type and the Document extension
in the standalone builder.

I have not uploaded a screenshot of the standalone builder for Mac standalones because when I tried I got
this message:

Sorry, the board attachment quota has been reached.

So, you'll have to go and have a look your self.

The make sure that your documents you want to open have the necessary suffix/extension.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Create an app that handles documents

Post by Mag » Wed May 21, 2014 1:50 pm

Hi richmond,

Thank you so much for your replay. Really useful information! Just implemented it in my project. :D

Post Reply

Return to “Mac OS”