Re: Why does NSDocument not care about saving Viewer-role document types

2012-06-11 Thread Markus Spoettl
On 6/11/12 1:48 AM, Graham Cox wrote: I believe the 'role' settings are only used by Core Data (if I'm wrong, I'm sure someone will correct me). I've run into the same issue. I've had to override -setFileURL: and at that point upgrade the URL to have the appropriate extension so that the modern

Why does NSDocument not care about saving Viewer-role document types

2012-06-10 Thread Markus Spoettl
I have an NSDocument based app that supports two file types, one as an Editor (for the new app version's documents) role and one as a Viewer (for old app version documents). Both are based on the same document class which reads both but saves only the new version format. When -saveDocument:

Re: Why does NSDocument not care about saving Viewer-role document types

2012-06-10 Thread Graham Cox
On 11/06/2012, at 3:14 AM, Markus Spoettl wrote: I have an NSDocument based app that supports two file types, one as an Editor (for the new app version's documents) role and one as a Viewer (for old app version documents). Both are based on the same document class which reads both but