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