Re: string pointer


Gerriet M. Denkmann
 

Why not this?

NSString* s;
NSUInteger c = [self computeFor:42 reason:needReason ? &s : nil];
Excellent. Works perfectly without complaints from the compiler.

Thanks a lot!

Kind regards,

Gerriet.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.