Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A better, seamless C++ wrapper around Cocoa collections (do not use)
C Objective-C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Hoard.xcodeproj
.gitignore
Hoard_Prefix.pch
README.mdown
Rakefile
Testing.1
Testing.mm
conversion_madness.h
hoard.h
hoard.mm
index.erb
metamadness.h

README.mdown

To see how Hoard can help you, take a look at this code:

hoard int_array = hd(1,1,2,3,5,8,13);
NSLog(@"ints: %@", int_array.as<NSArray*>());

hoard dict = hd(@"apples",@"oranges",
                @"grapefruits",@"lemons");
NSLog(@"dict: %@", dict.as<NSDictionary*>());

Basically, Hoard takes a list of things (of arbitrary type) and then holds onto them. When you want to use them for something, specify the output type (which could be any of the Cocoa collections, or even std::vector<id>, std::set<id>, std::map<id,id>, etc).

To see how this stuff actually works, please visit the literate documentation here.

Something went wrong with that request. Please try again.