views:

36

answers:

2

I want to read when a file is created (or last modified) as it showed in Finder "Date Modified."

Is there any existing method in Cocoa can do so? Thanks!

A: 

see 'man stat' or google 'struct stat'

KevinDTimm
+2  A: 

If you're using 10.5 or later, you can use -[NSFileManager attributesOfItemAtPath:error:].

mipadi
It really helps! Thanks a lot! :)
Frost