Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nth string from list



On 3/31/05 12:23 PM, Trygve Inda didst favor us with:

>> On 3/31/05 8:32 AM, Trygve Inda didst favor us with:
>> 
>>> a plist of sorts and having an array to be able to use CFArray. The file was
>>> planned to be stored in Application Support, but I think most he CF
>>> utilities require the plist to be in Preferences.
>> 
>> Why would you think this? Nothing in Core Foundation is documented this way
>> except CFPreferences.
>> 
>> Larry
>> 
>> 
> 
> The type of file is pretty close to a prefs file and it would be easiest to
> download it to the prefs folder and use CFPrefs to access it.
> 
> (Thus the slant toward CFPrefs)

If you're using CFPreferences to access it, then yes, it would need to be in
the Preferences folder, but you didn't say anything about CFPreferences.

However, I wouldn't do it this way for two reasons:

- You'd be using what I believe is an undocumented feature of CFPreferences.
AFAIK, CFPreferences is not documented to store your preferences in any
particular file or format. Yes, we all know what it does, and that's
probably not going to change, but I hate relying on assumptions. Reading the
file manually is simple and puts you in complete control.

- These aren't preferences. The Preferences folder is not a general use
folder to make things simpler for developers. I don't want to include these
kinds of files when I back up my preferences folder, for example. Do the
right thing. Put the file in the Application Support folder and read it
manually.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Nth string from list (From: Trygve Inda <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.