Integrating the RegisteringFileList

Lex Spoon lex at cc.gatech.edu
Sat Jan 19 17:31:28 UTC 2002


> 2. The mechanism is pretty simple. 
> * When a class for a new tool is filed in, it's initialize method tells
> FileList that it too can handle files.
> * When a FileList menu is raised, it asks each file handling class what
> services it can provide for this file ending. 


This sounds awesome!  One small thing, however: let's offer to let the
handler examine the opened file in addition to just the file ending. 
For binary formats, the first few bytes of the file are usually enough
to identify it more accurately than the filename.  This doesn't help for
text files, on the other hand.



Lex



More information about the Squeak-dev mailing list