public static NSArray GSSetDragTypes(NSView obj, NSArray types) { uint count = (uint)types.Count; NSString[] strings = new NSString[count]; NSArray t = null; uint i = 0; /* * Make a new array with copies of the type strings so we don't get * them mutated by someone else. */ types.GetObjects(strings); for (i = 0; i < count; i++) { strings[i] = strings[i].Copy(); } /* * Store it. */ //[typesLock lock]; //NSMapInsert(typesMap, (void*)(gsaddr)obj, (void*)(gsaddr)t); //[typesLock unlock]; return t; }