Re: NSFileManager problems
Re: NSFileManager problems
- Subject: Re: NSFileManager problems
- From: j o a r <email@hidden>
- Date: Wed, 8 Oct 2003 08:24:44 +0200
Don't cross-post April, this is one of the basic rules of mailing list
etiquette. Please post to either Cocoa-Dev or Mac OS X Dev, and not
both - at least not initially. Keep in mind that mailing lists are a
slow medium - it takes a long time for the message to propagate out to
all people on the list, also keep in mind that we live in different
time zones. Allow for several hours before giving up on a question. If
you think that you need to cross-post for some reason, at least make it
clear in the message that you've done so.
I had written an answer to your question on Mac OS X Dev before I
noticed the answers you'd received on Cocoa-Dev - that's a very good
way to ensure that I will not make the effort next time around... :(
j o a r
On 2003-10-08, at 05.14, Laze E Development wrote:
I don't understand how to obtain the file size from NSFileManager. I
get the dictionary and it has the file size key. The particular folder
I have been testing with is 12 megs . The dictionary key returns
15008530432 which is bytes. Now I must have my math off because I
thought megs was b / 8 / 1024 /1024.
The first problem I've has is that when I try to use nsvalue to
extract an unsigned long long the compiler tells me NSString does not
respond to unsignedLongLongValue. The only thing other than float, and
int that I can extract is a double. All of which gives me this number:
2123628544 which is so completely not even close to the number
returned in the dictionary. So.. Since I cannot pass the number in
bytes because it simply does not work for some reason I cannot fathom,
how can I get this byte number into a number I can break down to it's
kilobyte or megabyte size?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.