Hello!

I'm trying to bind a following ObjC method:

+ (void) post:(NSString*)service withParameters:(NSMutableDictionary*)params 
withResponse:(void (^)(NSDictionary* response))response;

There are two aspects about it that I don't fully understand:

1. Should I use NSMutableDictionary class or I can map it to NSDictionary or
even .NET Dictionary?
2. What (void (^)(NSDictionary* response))response means? It must be some
kind of ref parameter (so response is returned when method succeeds)?

So far my binding looks like this:

                [Static]
                [Export ("post:withParameters:withResponse:")]
                void Post (string service, NSMutableDictionary parameters, 
NSDictionary
response);






--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-bind-correctly-tp4656815.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to