add submenu support for nsmenu.
support specific return types for obj_methods