Package org.rococoa

Examples of org.rococoa.IDByReference


        if (arg == null) {
            return null;
        }
        if (arg instanceof ObjCObjectByReference) {
      // Forward conversion (another backwards conversion will take place in fillInReferences)
            IDByReference idref = new IDByReference();
      ObjCObject ob = ((ObjCObjectByReference)arg).getValueAs(ObjCObject.class);
      if (ob != null) {
        idref.setValue(ob.id());
            }
      return idref;
    }
        return arg;
    }
View Full Code Here


    public Object toNative(Object value, ToNativeContext context) {
  if (value == null) {
      return null;
    }
  return new IDByReference();
    }
View Full Code Here

        // Note that this is not the only marshalling that is done.
        // RococoaTypeMapper also gets involved.
        if (arg == null)
            return null;
        if (arg instanceof NSObjectByReference)
            return new IDByReference(); // this will be filled in with an id by
                // the called code, and then marshalled to an NSObject by fillInReferences
            // TODO - passing existing inout, not just out
        return arg;
    }
View Full Code Here

    }

    public Object toNative(Object value, ToNativeContext context) {
  if (value == null)
      return null;
  return new IDByReference();
    }
View Full Code Here

TOP

Related Classes of org.rococoa.IDByReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.