I\'m new to Objective-C, so please don\'t judge me too much. I was wondering: Is there an equivalent of the C++ STL pair container I can use in Objective-C?
I want to bu
Using anonymous struct and struct literals, you might be able to do something like
NSValue * v = [NSValue valueWithBytes:(struct {NSInteger i; bool b;}){i,b} objCType:(struct {NSInteger i; bool b;})];
and then to read,
struct {NSInteger i; bool b;} foo;
[v getValue:&foo];
It's a bit cleaner if you name your struct though.