Home Help Center

Optional return value / Objective C language mapping

mat42xmat42x Member Mathias MuellerOrganization: Objective GmbHProject: Infotainment
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;
@end

Which type is used for the return value? NSNumber ?

Comments

Sign In or Register to comment.