• 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
Re: how to get what tells fileURL has been changed by others
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get what tells fileURL has been changed by others


  • Subject: Re: how to get what tells fileURL has been changed by others
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 20 Apr 2008 09:15:21 -0700


On 20 Apr '08, at 5:32 AM, のりちん wrote:

I'd like to know who tells NSDocument that its location has been
changed by other apps and how to get the notification.

I think that internally each NSDocument instance keeps an AliasHandle pointing to the document file, and before saving resolves the alias back to a path to compare with the current path.


I'd like to hack before you notice something like "the document's
location was changed, so do you want to save any other location?" when
you open the file by an app and move the file to the other directory
in Finder while editing the file.

I assume you've looked through the whole public API of NSDocument; if there's nothing relevant there, it may not be possible to override this without relying on private APIs.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >how to get what tells fileURL has been changed by others (From: "のりちん" <email@hidden>)

  • Prev by Date: Re: My private problems
  • Next by Date: Re: A cursor bug in DragItemAround example
  • Previous by thread: how to get what tells fileURL has been changed by others
  • Next by thread: Different ways of application installation
  • Index(es):
    • Date
    • Thread