ini file question on the Mac
revdev at pdslabs.net
Mon Aug 11 12:53:34 CDT 2008
> Hi Mark,
> Yes, I need to store preferences for an application on any of the Mac OS
> This application is a single user standalone application.
> So I would need to know the path and filename extension for this preferences
In Rev, this should give it to you:
put specialFolderPath("Preferences") "/appPrefs" into tMyPrefsFile
AFAIK, any (or no) file extension can be used... but there may be a
preferred extension that I'm ignorant of. You might take a look in the
folder whose path is returned and see what is used by others.
Also, Ken Ray has a very nice list of specialFolderPath() values that
will take you pretty much wherever you want to go in the OS:
> On Windows, I would typically put this preferences file in the same folder
> as the executable.
> Filename: appname.ini
> Would I assume the same on Mac?
> Filename: appname.??? --this is where I need the correct filename extension
> for the Mac OS.
> Mark Stuart
> Mark Schonewille-3 wrote:
>> Hi Mark,
>> This is not the right question. What do you want to achieve?
>> Do you want to store user settings? Do so in a preferences file in ~/
>> Do you want tweak how the OS deals with your standalone? Plist might
>> be your friend.
>> Want to store some default settings for when the application is
>> launched for the first time? Why not simply a custom property?
>> Best regards,
>> Mark Schonewille
>> Economy-x-Talk Consulting and Software Engineering
>> Benefit from our inexpensive hosting services. See
>> for more info.
>> On 11 aug 2008, at 17:47, mfstuart wrote:
>>> Hi all,
>>> Please excuse my Mac ignorance as I'm a totally Windows guy, but...
>>> As is an ini file for a Windows application, so is a ??? file on the
>>> Mac OS.
>>> Could someone help me by "filling in" the ??? blank for the Mac OS?
>>> Mark Stuart
>>> View this message in context:
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
Professional Software Development
More information about the use-livecode