binding - What is the Monotouch/C# equivalent of id<SomeType> in ObjectiveC? -
good day,
i have:
objectivec:
- (void)addtarget:(id<gpuimageinput>)newtarget; c#:
[basetype (typeof(nsobject))] interface gpuimageoutput{ [export ("addtarget")] void addtarget(nsobject newtarget); //suspected source of error } results in "unrecognized selector sent instance" when calling
stillcamera.addtarget (filter); and
gpuimage.gpuimageoutput filter = new gpuimage.gpuimagesketchfilter (); while basetype of stillcamera videocamera has basetype gpuimageoutput.
gpuimagesketchfilter gpuimagesobeledgedetectionfilter gpuimagetwopassfilter gpuimagefilter gpuimageoutput nsobject , @ same time implements gpuimageinput.
any ideas?
thank you!
the equivalent
// objective-c id<foo> xxx; is "foo" in c#.
Comments
Post a Comment