PDA

View Full Version : file size in cocoa




NSDuo
Jun 24, 2008, 10:33 AM
I've looked in every cocoa development site I know of and I've searched google a hundred times, and I'm mostly getting recipes for hot cocoa as my results. Despite how good this cocoa is, it's not helping me with my problem. I need to find the size of a specific file with Objective C and I'm not sure how to do it.



kpua
Jun 24, 2008, 10:47 AM
The documentation is the first place you should turn to for questions like these.

Check out the documentation for NSFileManager. In particular, look up the method attributesOfItemAtPath:error: