This is an example:
NSValue* value;
unsigned size;
void* buffer;
// ...
value = [anObject aValue];
// ...
// I don't know the type and the size
// of the data that
// NSValue store at this time
// the next method getValueSize
// don't exist
// ??? size = [value getValueSize]; ???
buffer = malloc( size );
[value getValue:buffer];
// I don't want to pass NSValue directly
// here ...
doSomeThingsWithThisPointer( buffer );
free( buffer );
// ...
How I can obtain programmatically the size of the data stored in a NSValue object?
Sorry for my buggy english