Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / April 2006



Tip: Looking for answers? Try searching our database.

file size?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Fredlein - 24 Apr 2006 08:35 GMT
Hi,

I'm using:-

data= [[NSData alloc] initWithContentsOfFile:[openPanel filename]];

In the Finder the file's length is 121,064 bytes but my data length is
47,692. After much messing about trying to find where I went wrong I
opened the terminal and the file size is actually 47,692.

I thought that the Finders "Get Info" panel displayed the actual size of
the file in brackets not the space occupied on disk.

Is this a thing with my Intel iMac (10.4.6) or is it like that on PPC
also?

Thanks,

Paul
Paul Russell - 24 Apr 2006 09:23 GMT
> Hi,
>
[quoted text clipped - 11 lines]
> Is this a thing with my Intel iMac (10.4.6) or is it like that on PPC
> also?

Perhaps it's a file with a resource fork, e.g. an image file with a
preview in the resource fork ?

Paul
Paul Fredlein - 25 Apr 2006 05:32 GMT
Ahh, resource fork... forgot about that.

Thanks,

Paul

> > Hi,
> >
[quoted text clipped - 16 lines]
>
> Paul
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.