At 10:50 PM 6/3/2003 +0200, you wrote:
On Mon, Jun 02, 2003 at 09:32:02PM -0400, Richard Coutts wrote:
> I'm wondering if I can use VFSFileGet(Set)Attributes to set my own custom
> flag for a file. The attributes is a 32-bit number, but the OS only seems
> to be using the lowest 8-bits or so and the rest are undefined (according to
> the "File and Directory Attributes" list).


(Unlike Jeff, let's look at your actual question :-))

I understand Rich's question is asking how to set a custom flag for any given file through VFSFile[Set|Get]Attributes. I offered some alternatives to this approach because it is, as Rich admitted, dangerous (and it doesn't work).


I advised that if the files are in the PDB format, then that custom flag may be stored in the appInfo block; if the files are in raw format, then that custom flag may be stored at any arbitrary/convenient offset into the file. I then suggested an easier alternative, which is to store the flag(s) in a separate data file ("prefs.dat"). This could contain a mapping of file path to flag, to support many files.

-Jeff Ishaq

ps: I also responded in a fashion that was not condescending...


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to