file size in cocoa

Discussion in 'Mac Programming' started by NSDuo, Jun 24, 2008.

  1. macrumors newbie

    Joined:
    Jan 16, 2008
    #1
    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.
     
  2. macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    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:
     

Share This Page