I have code like this:
NSData *data = [NSData dataWithContentsOfURL:objURL]; const void *buffer = [data bytes]; [self _loadData:buffer]; [data release];
the ‘_loadData’ function takes an argument like:
- (void)_loadData:(const char *)data;
How do I convert ‘const void ‘ to a ‘const char‘ on Objective-C?
Just like you would in C:
should work.