Undocumented MacOS X Deployment Options

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
icouto
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 89
Joined: Wed May 29, 2013 1:54 am
Location: Sydney, Australia

Undocumented MacOS X Deployment Options

Post by icouto » Sun Aug 26, 2018 12:51 am

Hi all! I'm trying to understand the deployment options that we have available for MacOS X, in the 'Standalone Application Settings' dialogue - but I'm getting stuck. There seem to be options that are not documented anywhere (I've looked through the User Guide, online docs, lessons and tutorials), but nothing.

So, I thought I'd try the experts here at the Forum:
  • In the PLIST section of the dialogue, there is a field titled 'Signature' (under a 'Name' field), with a default value of "????" in it. What is it? Is this related to code signature? Do we have to manually produce a code signature?
  • Still in the PLIST section, we have a 'Document Type' field, and a 'Document Extension' field. I'm guessing that 'document extension' should be a list of 3- or 4-letter extensions that my app is supposed to support, correct? - e.g., 'txt', 'gif', 'jpg', 'jpeg', etc. But what about 'document type'? Are there pre-defined values that should go there? What about if I want my app to support its own custom document type? - e.g., 'abcd' extension for "ABCD Document'?
  • There is a field at the top of the dialogue for 'Application Icon' and under that one for 'Document Icon'. What happens if my app produces more than one type of document - which should have different icons? Do I have to then manually open the PLIST and edit values directly?
Any guidance is truly appreciated!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4663
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Undocumented MacOS X Deployment Options

Post by jacque » Sun Aug 26, 2018 10:14 pm

icouto wrote:
Sun Aug 26, 2018 12:51 am
  • In the PLIST section of the dialogue, there is a field titled 'Signature' (under a 'Name' field), with a default value of "????" in it. What is it? Is this related to code signature? Do we have to manually produce a code signature?
This is a remnant of OS 9 where app signatures needed to be registered with Apple. That was abandoned in OS X, so you can leave the default ???? in there. It is still possible to assign a signature if you already have one for the app, but OS X looks at the extension first and doesn't use the signature unless all else fails.
  • Still in the PLIST section, we have a 'Document Type' field, and a 'Document Extension' field. I'm guessing that 'document extension' should be a list of 3- or 4-letter extensions that my app is supposed to support, correct? - e.g., 'txt', 'gif', 'jpg', 'jpeg', etc. But what about 'document type'? Are there pre-defined values that should go there? What about if I want my app to support its own custom document type? - e.g., 'abcd' extension for "ABCD Document'?
The document type is similar to the app signature, a four-character type code used by OS 9. It can be blank or ???? (all types.) The extension is how OS X identifies which document types your app can use. You would list those here. If you have a custom document type, put that extension here instead and be sure your app writes files with that extension. Extensions can be longer than 4 chars, LC uses ".livecode" for example.
  • There is a field at the top of the dialogue for 'Application Icon' and under that one for 'Document Icon'. What happens if my app produces more than one type of document - which should have different icons? Do I have to then manually open the PLIST and edit values directly?
Yes, but you can't edit the plist after you've built the standalone because that will destroy the security signature. Instead, copy the plist and edit it in a text editor, then include it in Copy Files. The standalone builder will use your edited copy instead of its default one. I believe if you are using standard formats like PNG, TXT, etc, you don't need to include icons for those because the OS already has them. You only need the ones that are unique to your app.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

icouto
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 89
Joined: Wed May 29, 2013 1:54 am
Location: Sydney, Australia

Re: Undocumented MacOS X Deployment Options

Post by icouto » Mon Aug 27, 2018 12:20 am

Thank you for your wonderful guidance, @jaqcue! Just to confirm: if I'm not at all concerned with OS 9, I can safely leave the 'signature' and 'document type' fields alone, and all should work fine in OS X?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4663
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Undocumented MacOS X Deployment Options

Post by jacque » Mon Aug 27, 2018 1:10 am

Right, you can ignore those fields.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”