• 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
NSURL Name of a File: Content nor Attribute, how to check for modification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURL Name of a File: Content nor Attribute, how to check for modification?


  • Subject: NSURL Name of a File: Content nor Attribute, how to check for modification?
  • From: martin halter <email@hidden>
  • Date: Fri, 11 Dec 2009 11:56:44 +0100

hello list

As I change the name of a File in Finder, neither NSURLContentModificationDateKey nor NSURLAttributeModificationDateKey do change.

I have an internal list of Files as NSURLs in my application and watch the directory with FSEvents. I properly receive the notification that something in the watched directory changed and can properly react if some content or some metadata has changed (ie. Label). But how can i detect if the name has changed?

A few years ago I read an interesting and philosophical discussion: does the name of a file belong to it's content or to it's metadata. It was very controversially discussed and as I see now for NSURL, it actually does not belong to any :-) so it's part of the URL itself. As i work only with fileReferenceURLs i don't know how to determine the change.

thank you everybody for this superb mailing list.

regards

mahal


_______________________________________________

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

  • Follow-Ups:
    • Re: NSURL Name of a File: Content nor Attribute, how to check for modification?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Limiting the area of an NSShadow
  • Next by Date: [COCOA] notification of enter/focus event?
  • Previous by thread: Limiting the area of an NSShadow
  • Next by thread: Re: NSURL Name of a File: Content nor Attribute, how to check for modification?
  • Index(es):
    • Date
    • Thread