Unable to access "public" variables in generated Java

Hi,

I declared a “public” variables in header file like this in bellow :
I try inherit this object in Java but I can;t see the declared variables but I can access the parent method which is
initData. I got no problems accessing parent;s variables and method in obj-c

Any ideas ?

Thanks
Ivan

I got no problems access this parent in obj-c

@interface TableViewController : UIViewController {

@public
NSMutableArray *headData;
NSMutableArray *leftTableData;
NSMutableArray *rightTableData;

}

  • (void)initData ;
    @end

Hi,

Can you provide us with a full test project to reproduce this?

I am not sure if this is the best pattern you are trying to do. I would rather use properties instead of public fields.

Best Regards,
Gergely

Hi,

Thanks for the reply. I attached my test project.
I would like to access the declared public variables from ParentViewController (Obj-C) in MyViewController (Java)

Thanks
Ivan

test-inherit.zip (89.6 KB)

Hi,

Found the problems? :relaxed:

Best Regards,
Ivan