public NSObject[] ObjectsForKeys(string[] keys) { var keysHandle = ObjC.ToNSArray(keys); var arrayPtr = Runtime.GetNSObject <NSObject>(ObjC.MessageSendIntPtr(Handle, "objectsForKeys:notFoundMarker:", keysHandle, new NSObject().Handle)); var array = ObjC.FromNSArray <NSObject>(arrayPtr.Handle); ObjC.ReleaseNSArrayItems(keysHandle); return(array); }
public string[] KeysForObject(NSObject obj) { var array = Runtime.GetNSObject <NSObject>(ObjC.MessageSendIntPtr(Handle, "allKeysForObject:", obj.Handle)); return(ObjC.FromNSArray(array.Handle)); }