This forum has been archived. Please start a new discussion on GitHub.

Optional return value / Objective C language mapping

I am looking for an example that explains how to use optional return values in Objective C.
Given the following slice idl:

interface Foo
optional(1) int bar();

The Objective C protocol looks like:

@protocol Foo <NSObject>
-(id) bar:(ICECurrent *)current;

Which type is used for the return value? NSNumber ?