Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public string[] KeysForObject(NSObject obj)
        {
            var array = Runtime.GetNSObject <NSObject>(ObjC.MessageSendIntPtr(Handle, "allKeysForObject:", obj.Handle));

            return(ObjC.FromNSArray(array.Handle));
        }