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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -