• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unsigned Long Long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unsigned Long Long


  • Subject: Re: Unsigned Long Long
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 12 May 2004 16:39:18 -0500

An unsigned long long is simply a 64-bit integer, in the range 0 .. (2^64)-1. You do arithmetic on it the same way you'd do it on any other integer. Divide by 1024 to get KB.

I'm curious why you're doing it this way instead of using NSFileManager's fileAttributesAtPath:traverseLink: method, which would work even if you didn't have read permission on the file.

-- F

On 12 May 2004, at 3:20 PM, email@hidden wrote:

Ok so i use this code to seek a file and get its size

NSFileHandle *fh = [NSFileHandle fileHandleForReadingAtPath:file];
NSNumber *totalFileSize = [NSNumber numberWithUnsignedLongLong:[fh
seekToEndOfFile]];
[fh closeFile];

the size is returned to me as an Unsigned Long Long ... does anyone
have a good definition of what exactly that is? I need to convert it
to kilo bytes
_______________________________________________
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.


  • Follow-Ups:
    • Re: Unsigned Long Long
      • From: Sherm Pendley <email@hidden>
References: 
 >Unsigned Long Long (From: email@hidden)

  • Prev by Date: Re: ConvertMovieToFile w/ iTunes Store m4p's
  • Next by Date: Re: Inserting objects in content array
  • Previous by thread: Re: Unsigned Long Long
  • Next by thread: Re: Unsigned Long Long
  • Index(es):
    • Date
    • Thread