ini file question on the Mac
Phil Davis
revdev at pdslabs.net
Mon Aug 11 13:53:34 EDT 2008
Hi Mark,
mfstuart wrote:
> Hi Mark,
> Yes, I need to store preferences for an application on any of the Mac OS
> versions.
> This application is a single user standalone application.
> So I would need to know the path and filename extension for this preferences
> file.
>
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:
http://sonsothunder.com/devres/revolution/tips/file010.htm
HTH -
Phil Davis
> 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.
>
> Regards,
> 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 ~/
>> user/library/preferences.
>>
>> 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
>> http://economy-x-talk.com
>> http://www.salery.biz
>>
>> Benefit from our inexpensive hosting services. See
>> http://economy-x-talk.com/server.html
>> 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?
>>>
>>> Regards,
>>> Mark Stuart
>>> --
>>> View this message in context:
>>> http://www.nabble.com/ini-file-question-on-the-Mac-tp18928420p18928420.html
>>> 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:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>>
>
>
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
More information about the use-livecode
mailing list