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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]