User Default Groups
User Default Groups
- Subject: User Default Groups
- From: Kevin Ferguson <email@hidden>
- Date: Mon, 5 May 2008 23:27:20 -0700
Greetings,
I'm writing a program where the user will define a window and a web
page. Now, my code will take various aspects of what the user defines
(Web Page URL, window size/position, ect) and save them to user
defaults so that they can be loaded again later. At the moment, I have
each entry saved individually (E.G= apple URL, NSWindow Frame Apple,
etc). However, seeing as this could eventually become large and
confusing, I'd like a way to just store all related data inside a
group. (I.E- Have the URL 'www.apple.com' and its corresponding window
size be stored under a heading called 'apple') Seeing as all parts
stored in the heading would be loaded at once (Since they comprise
only one entity), separating them is not an issue.
In poking around other plist flies, I have seen several 'groups' of
data stored under a heading. Is it at all possible to take each
individual piece of data and store them under a unique group?
Furthermore, is it at all possible to load each aspect of data back
after saving it in this manner?
For an example of what I mean, you can look at the
com.apple.dashcode.plist file in ~/Library/Preferences/, in specific
the "CYOpenDocuments" group
Thanks!
-Kevin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden