On 22/03/2010, at 11:28 AM, James W. Walker wrote:


On Mar 21, 2010, at 4:20 PM, Ron Fleckner wrote:

On 22/03/2010, at 10:01 AM, gMail.com wrote:

Hi,
I cannot find a Cocoa API to set the "Attribute Modification Date" of a
file. If there is a way, may you please let me know?


Thanks
--
Leonardo

the Cocoa way, I suppose, is to use NSFileManager. Looks like you can use setAttributes:ofItemAtPath:error: with an NSDate value for NSFileModificationDate.


He's asking for the attribute modification date, not the (content) modification date attribute. That is, the last time the attributes of the file were changed, without necessarily changing the contents of the file.

Whoops, sorry. I wasn't aware that NSFileManager's NSFileModificationDate only applied to the contents of a file. Live and learn, eh?

Ron

_______________________________________________

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 arch...@mail-archive.com

Reply via email to