@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 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);
 }
Esempio n. 3
0
 @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 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 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;
 }