Re: NSDocument: Read-only types and autosavesInPlace
Re: NSDocument: Read-only types and autosavesInPlace
- Subject: Re: NSDocument: Read-only types and autosavesInPlace
- From: Daniel Vollmer <email@hidden>
- Date: Sun, 24 Jul 2011 11:20:18 +0200
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 cannot see anything between my example and TextEdit that could cause it to behave differently, even after having put breakpoints onto every imaginable message.
>
> Can anyone see what I'm doing wrong or differently from TextEdit?
It turns out that this machinery (i.e. the auto-renaming when changing file-types) only kicks in when you use UTI type declarations. Or at least that seems to be the case.
Anyhow, one riddle solved...
Daniel.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden