NSDocument, setFileURL:
NSDocument, setFileURL:
- Subject: NSDocument, setFileURL:
- From: Brian Amerige <email@hidden>
- Date: Sun, 7 Oct 2007 16:55:31 -0400
Hi all,
I've run into a bit of snag using NSDocument. In my implementation,
I'm editing remote files by downloading them locally, doing the edits,
and then uploading to overwrite the changes. The document's fileURL
is the URL to the local copy of the file.
This works well with NSDocument (albeit a few leaps in the paradigm
because some stuff is remote), but the issue I've run into is that
when the user renames a file remotely, I need to reflect that rename
locally as well. When I receive notice of the path change, I call
setFileURL: on the document, informing of it of the new path. The next
time the user goes to save the document, it pops up a window informing
the user that the document has been renamed, confirming the details.
In my implementation, this is certainly not what I want. I require no
user interaction for this rename --- they requested in the first
place, remotely.
Any suggestions?
-Brian.
_______________________________________________
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