Setting file for an NSDocument
Setting file for an NSDocument
- Subject: Setting file for an NSDocument
- From: Martin Hairer <email@hidden>
- Date: Wed, 18 Oct 2006 03:40:18 +0100
Hi, I have a programatically created NSDocument and I happen to know
that
its data corresponds to a given file on the disk. So I would like to
associate
that file to the document. I tried calling setFileURL and it almost
works. It
changes the title of the window and sets the little proxy icon
correctly. However,
it doesn't do exactly what I want, since the "Save" function is then
disabled.
If I make changes to the document, I have to choose "Save As"
instead. Any
idea on how to properly associate a file with a given document?
Thanks in
advance for any hint. Regards,
Martin
HairerSoft
http://www.hairersoft.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden