Re: how to get what tells fileURL has been changed by others
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