I wonder if there is a way to pass a NativeInterface object instance as parametter of the method of another NativeInterface. I mean when I create two objects that extends NativeInterface like this: NativeObjectType1 o1 = (NativeObjectType1 ) NativeLookup.create( NativeObjectType1 .class); NativeObjectType1 o2 = (NativeObjectType1 ) NativeLookup.create( NativeObjectType1 .class); CN1 is necessarilly keeping a mapping between this CN1 java o1 object and the native one so that if I call o1.somemethod(), it would make a native call to the somemethod() method of the native o1 object (and not of the o2 one). Now, if I have onother NativeInterface object of a the type NativeInterfacType2: NativeObjectType2 o3 = (NativeObjectType2) NativeLookup.create( NativeObjectType2 .class); I would like to be able to pass to some method of this object o3 an instance of a NativeObjectType1 object (so to do something like o3.amethod(o1)) as this method would depends on multiple parametters stored nativelly in NativeObjectType1 objects. It should be feasible in theory as CN1 keep a mapping between a CN1 java object and its matching native object (to bind the calls of a NativeInterface) so if I pass a CN1 object that extends NativeInterface, it should be able to use this mapping to retrieve the matching native object and pass the pointer to it when transforming the java call into a native one... But I don't know if this has been implemented
-- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b8705a13-7637-4534-95d5-afd6ed16f2dd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
