Hi all,
I want to list the names of the unsaved documents in my application in an NSTableView. Unfortunately it seems I can't just create an array of names and set the table to display it, which would be preferable. My next approach was to instantiate an NSArrayController and set its contentArray to a method -unsavedDocuments which returns the unsaved documents on-the-fly. Unfortunately nothing shows up in the table view when I run the program; I assume this is because I am not using KVC. However, I don't see how I can do that since the documents are stored for me by NSDocumentController. What should I do? Thanks for any suggestions.
I want to list the names of the unsaved documents in my application in an NSTableView. Unfortunately it seems I can't just create an array of names and set the table to display it, which would be preferable. My next approach was to instantiate an NSArrayController and set its contentArray to a method -unsavedDocuments which returns the unsaved documents on-the-fly. Unfortunately nothing shows up in the table view when I run the program; I assume this is because I am not using KVC. However, I don't see how I can do that since the documents are stored for me by NSDocumentController. What should I do? Thanks for any suggestions.