NSDocumentController subclass with remembered document options

Hi all,

I am trying to allow users of my app to select extra options when opening documents, and to remember those options when re-opening documents at launch.

So far best idea I have is:

  • Subclass NSDocumentController to provide an NSOpenPanel.accessoryView with the options
  • Create a URL bookmark for each opened file and keep a mapping of bookmarks to options
  • On launch and when the recent documents list changes, prune the stored mappings to match only the recent items

Has anyone done this before, or know of a better approach?

Thank you.

NSDocumentController subclass with remembered document options
 
 
Q