In the interface, -(void) showLog: (NSString*) formatSpecifier, ...; In the implementation -(void) showLog: (NSString*) formatSpecifier, ... { va_list formatArgs; va_start(formatArgs, formatSpecifier); NSString* logMessage = NSString alloc initWithFormat: formatSpecifier arguments: formatArgs; va_end(formatArgs); // Do want you need to to output the string. LogMessage release; }.
1 A good article on variadic methods: cocoawithlove.com/2009/05/variable-argum... – vikingosegundo Dec 9 '10 at 18:58 Too bad this answer didn't get checked, because it is exactly what I've been looking for. Awesome addition by @vikingo too, +1 for both. Cheers.
– epologee Jul 8 '11 at 8:16.
developer.apple.com/library/mac/#qa/qa20... - (void) showLog: (id) data, ...
Upvoting because you included a link to great documentation. – Ryan Dec 9 '10 at 19:22.
NSString *out = NSString stringWithFormat:@"something %d,%d",1,2; self showLog:out; - (void)showLog:(NSString*)data{ NSLog(@"%@", data); } Just ask for more help if you need it :) or feel free to clarify your question if I am mistaking what you need ;) Best regards Kristian.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.