NVL in Objective-C

You cannot help but bring gems from one language to another.

// return rv (replacement value) for v (value) when v is nil
+(id *)nvl:(id *)v :(id *)rv {
return (v==nil)?rv:v;
}