All,

I'm trying to determine the size of a file on a server.  If I send the 
following message to an NSURL named "path", I get:

[path getResourceValue:&value forKey:@"content-length" error:&error];

value comes back nil.  If I send:

value = [path propertyForKey:@"content-length"];

which is deprecated, I get the correct file size.  What is the proper way to 
get a file size for a file specified with a web address?

Thanks,
Eric

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to