| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have a little conceptual type question about CF collections. I want to_______________________________________________
use one to store a directory hierarchy. The the collection will contain
CFURLs to files, and then sub-collections that represent directories which
are filled with CFURLs to the files in those sub-directories, etc. I'm
not sure which collection type is most appropriate: CFTree or CFArray.
I will admit, I'm having a little trouble wrapping my head around all of
the nuances of CFTree and its purpose, so that's why I'm not sure. In a
way, it seems like it makes more sense because of its, ummm, tree-like
design. But in another sense, I don't really see how it holds data values
aside from just the nodes that represent its own structure. CFArray seems
more appropriate with respect to holding data values, but it seems like it
might be a little weird to have mixed types of values (CFURLs and
CFArrays), although I can just CFGetTypeID to figure out what each value
is. So anyway, I'm not sure, and I'm a little fuzzy on CFTrees. Are
CFTrees really just intended for XML data, or are they more general?
Thanks for any guidance,
Marc
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.