Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: File-modes on different platforms

From: greggirwin:mindspring at: 26-May-2002 11:55

Hi Anton, et al << Each of the file-modes have (so far) four different datatypes. I am mapping each of the different datatypes, (so far: date!, logic!, string! integer!) to different user interface gadgetry...You get it now? If my code gets a none!, how is it supposed to know what type of gadgets to add to the layout to edit that file-mode? >> What about this, you have a mapping table of datatype-to-field values which starts out blank (it's an external file and so is non-existent on initial runs). When the app starts up, it does a check of a) itself, and b) a random sampling of files to see what file modes are available on the current OS. If, when done with that, any of the modes it found came back with none! values for *all* the files it looked at, then you prompt the user to pick a gadget type. I.e. by looking at a sampling of files, you stand a better chance of finding at least one that has a value for each mode. --Gregg