Re: NSDocument annoying warning
Re: NSDocument annoying warning
- Subject: Re: NSDocument annoying warning
- From: Quincey Morris <email@hidden>
- Date: Fri, 14 Nov 2008 15:52:03 -0800
On Nov 14, 2008, at 15:21, Randall Meadows wrote:
Is there something I can do to tell NSDocument (or whomever) that
these changes that it thinks are made by another application are on
purpose, and that it needs to keep its opinions regarding them to
itself? If <whatever> ends up marking the file as "dirty", that's
fine by me. I'll go continue scouring the docs, but if someone has
a pointer, I'd appreciate it.
I think you can just call -[NSDocument setFileModificationDate:] after
you've modified the file yourself, and that warning will go away.
For changing the extension, you could try -[NSDocument setFileURL:]
after you change the extension (both to and from the temporary one).
You might also have to override -[NSDocument displayName] if you don't
want to show the temporary extension in the window title, but that's
purely cosmetic.
_______________________________________________
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