See the documentation for - (NSDictionary *)attributesOfItemAtPath:(NSString 
*)path error:(NSError **)error in NSFileManager.

The returned dictionary has a convenience method -fileSize.

Best,
Hank

On Aug 31, 2011, at 3:51 PM, Jon Sigman wrote:

> How does one determine the size of a file on disk using Cocoa? 
> I've looked at NSFileManager but it doesn't seem to offer any 
> methods for finding file attributes. 
> OSX 10.6.8
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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/hank.list%40runbox.com
> 
> This email sent to [email protected]
> 

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to