Giter Club home page Giter Club logo

disk-inventory-x's Introduction

Disk-Inventory-X

Fork of Disk Inventory X with the correct volume size formatting and rebuilt external frameworks headers.

As the original author states, "Disk Inventory X is a disk usage utility for Mac OS X 10.3 (and later). It shows the sizes of files and folders in a special graphical way called "treemaps". If you've ever wondered where all your disk space has gone, Disk Inventory X will help you to answer this question."

Since DIX 1.0 was written, OSX APIs have continually changed and one of them was the introduction of new behavior for NSNumberFormatter in OSX 10.4. This new behavior would cause DIX running on OSX 10.4+ to format the volume sizes incorrectly, for example my 465.6 GB HDD was being displayed as 4,65.6GB:

Setting the NSNumberFormatter behavior to NSNumberFormatterBehavior10_0 results in the correct values:

The main problem in fixing this was that DIX relied on three main external frameworks: OmniFramworks, CocoaTech and TreeMapView. Except for TreeMapView which is provided by the original author, finding the source code for the other two proved difficult. Even if the source code was available, compatibility problems between early versions of Xcode (2.x) and the latest Xcode (7.2) would make it troublesome to compile.

Therefore, I extracted the prebuilt frameworks from the Disk Inventory X.app bundle and recreated the headers as follows:

CocoaTech

This has proved most annoying as I haven't been able to find versions of the Path Finder SDK from the same epoch as DIX and the contemporary SDK is incompatible, in the sense that it's wholly different.

Luckily, there's a tool called class-dump that came to the rescue. Feed it a framework bundle and it will output a header file for each class it finds along with the correct methods and members. Took the generated headers and placed them inside the framework bundle in the Headers folder. I did have to modify them slightly, but overall it was easy.

OmniFrameworks

OmniGroup has kindly made available their source repo, but it goes back only as far as 2009. Fortunately, it didn't change much, and I was able to extract the header files and integrate them with the prebuilt version of the framework that was distributed with DIX. There's no need to go hunting in all the folders to extract the headers, just go to the target settings > build phases > headers:

TreeMapView

The Xcode project file is no longer compatible with contemporary versions of Xcode so I had to manually copy the header files, which was ok because they were only a handful.

Building

Clone the repository and open the project file located in Disk Inventory X 1.0 src/make/src/Disk Inventory X.xcodeproj and then hit CMD+B.

disk-inventory-x's People

Contributors

alinradut avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.