Re: NSDocument: Read-only types and autosavesInPlace

2011-07-24 Thread Daniel Vollmer
Hello again, On 23 Jul 2011, at 13:00, Daniel Vollmer wrote: Oddly enough, the TextEdit example *should* end up with the same problem when I create a .rtf-document, drag an attachment into it (so it becomes .rtfd), and then close the document. Unfortunately, it works fine for TextEdit but I

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-23 Thread Daniel Vollmer
After some more time on this, I still don't get it. =) I've given this a go, but it does not seem to work for me. I set the new fileType after [super readFromURL:...] is done. Then, when - (void)saveToURL:(NSURL *)url ofType:(NSString *)typeName

NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Daniel Vollmer
Hello, I'm trying to add autosavesInPlace support to my NSDocument-based Application. It supports a read-only type that is internally converted (as suggested in

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Kevin Perry
On Jul 22, 2011, at 9:16 AM, Daniel Vollmer wrote: Hello, I'm trying to add autosavesInPlace support to my NSDocument-based Application. It supports a read-only type that is internally converted (as suggested in

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Daniel Vollmer
On 22 Jul 2011, at 19:25, Kevin Perry wrote: On Jul 22, 2011, at 9:16 AM, Daniel Vollmer wrote: Hello, I'm trying to add autosavesInPlace support to my NSDocument-based Application. It supports a read-only type that is internally converted (as suggested in