I would define some helper functions, and i prefer write them in C instead of objective-C.
Which is the "best practice" to add header and implementation C file in a Objective C project ?
If i need to use Objective-c definition in my functions, what i need to include in my header C file (UIKit?) ?
Example: i'd like to create a shortcut to NSLog for NSString , can i create in my C file something similar to this code ? :
void MYLog (NSString *string){
NSLog(@"%@",string);
}
NSLog()to take a singleNSStringwhen it already take a string, and optionaly more parameters?