@MarshalsPointer public static long toNative(List<NSStreamSOCKSProxyVersion> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (NSStreamSOCKSProxyVersion o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<NSCocoaErrorUserInfoKey> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (NSCocoaErrorUserInfoKey i : l) { array.add(i.value()); } return NSObject.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<NSURLProtectionSpaceProxyType> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (NSURLProtectionSpaceProxyType o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<NSFileSystemAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSFileSystemAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<NSStreamSOCKSProxyVersion> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<NSStreamSOCKSProxyVersion> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(NSStreamSOCKSProxyVersion.valueOf(o.get(i))); } return list; }
@MarshalsPointer public static List<NSFileSystemAttributes> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSFileSystemAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new NSFileSystemAttributes(o.get(i))); } return list; }