• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDocument, setFileURL:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Convert NSOpenGLView pixel coordinates to OpenGL world coordinates
  • Next by Date: Re: Contextual menu on NSOutlineView without subclassing
  • Previous by thread: Re: What is contentObject used for?
  • Next by thread: Re: NSDocument, setFileURL:
  • Index(es):
    • Date
    • Thread