This method can be used to detach the specified object from the specified menu.
After this method returns the specified object will change its state from attached
to detached. This means that you could now attach it to another menu using a
function like Menu.Insert or you could free it using moai.FreeObject().