moai.DoMethod(id, "Append", obj)
obj
to the menubar
object specified by id
. The detached object will be added as the menubar's last
child. After this method returns the specified object will change its state from
detached to attached. That is why you must no longer use functions that expect a
detached object with this object now.
Detached MOAI objects can be created either by calling the moai.CreateObject() function or by explicitly detaching them from their parent by using the Menubar.Remove method.