• 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: Querying system-wide base for file size calculation (base-2 vs base-10)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Querying system-wide base for file size calculation (base-2 vs base-10)


  • Subject: Re: Querying system-wide base for file size calculation (base-2 vs base-10)
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 23 Nov 2011 13:16:40 -0800

On Nov 23, 2011, at 1:08 PM, Oleg Krupnov wrote:

> Yes, I checked the source code of switchDiskSizeBase, and as far as I
> can see, the guy is using some low-level hack, like opening a system
> framework binary, uncompress it, find some bytes at certain magic
> offset, read and rewrite them. This kind of thing isn't acceptable for
> my app, I'm looking for some legitimate ways, some public APIs.

I can only assume that if the author did it that way, it means there aren’t any APIs for it. Sounds like the Finder and Disk Utility are hardcoded to behave a certain way and this tool just hacks their code to change the behavior.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Querying system-wide base for file size calculation (base-2 vs base-10) (From: Oleg Krupnov <email@hidden>)
 >Re: Querying system-wide base for file size calculation (base-2 vs base-10) (From: Jens Alfke <email@hidden>)
 >Re: Querying system-wide base for file size calculation (base-2 vs base-10) (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Re: Querying system-wide base for file size calculation (base-2 vs base-10)
  • Next by Date: Re: Is there an easier way of changing NSButtonCell state in an NSOutlineView
  • Previous by thread: Re: Querying system-wide base for file size calculation (base-2 vs base-10)
  • Next by thread: Problem getting NSTextView Ruler to update
  • Index(es):
    • Date
    • Thread