> How do I use the FileEnum function? The docs are way to confusing to figure
> out. They really should make a sample app that uses it. Say I want to find
> all files in a directory with a specific token & manufacturor id, the way
> Preferences and GeoManager do to find their addon modules. How would I do
it?
>
If you're using the GenDocument object, it's quite easy. You just tell it
the "one" type of file, and a token if you have one, that you want
listed...and the GenDocument takes care of the rest. If you use a
GenFileSelector, you can specify the types of files that should be shown and
the token that goes with it. Look in the GenFileSelector section of the SDK
Docs (Objects) if that's all you want is to be able to have a File Selector
come up with the "ATTR_GEN_FILE_SELECTOR_CREATOR_MATCH { {CRTR},0}; " set up
with what you want.
If you're trying to create a controller similar to the Preferences module..I
don't know, but since it seems like a controller object to me, then you may
need to examine the way preferences does it, to get an idea.
Lee