Article # 280, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
What file attributes does GenDocumentControl take into account?
Q. Exactly which regular attributes and extended attributes does the document control take into account? Is there a way that I can look at a file's extended attributes with the debugger? It seems the only other way would be to programmatically request each one to get the settings. Then, if I don't know which ones the doc control is looking for I will have to set all of them for each file I create. A. There's FEA_FILE_ATTR (FA_RDONLY), FEA_PROTOCOL, FEA_TOKEN, FEA_CREATOR, FEA_FLAGS (public/template stuff), FEA_USER_NOTES (for display in the file open box), FEA_PASSWORD (all 0 if no password), and FEA_RELEASE (just sets it). (It also does FEA_DISK and FEA_FILE_ID, but those aren't settable.) The file token is what is needed to see the thing in a file-open box. The creator token is needed if you double-click the file. The FEA_FILE_TYPE is needed by the VM system. the protocol is needed once the file is opened and should match the protocol bound into the document group object.