I would like to alter the value of *EntryMenuItem* inside the callback 
function (ie. the user types on the keyboard for that menu item). I try to 
alter it using self.the_menu_item.value = "What I want". But the problem is 
that this updated value is not drawn until the user changes it *again*.

For example:

value = "123"
> User types "5"
> I set value = "Wrong" inside the callback function
> What is actually displayed is "1235"
> User types "6"
> What is display is "Wrong6"


So you can see that the system draws using the value prior to entering the 
callback function even if the callback then goes onto parse that input.

I suppose I am using this menu as a fast way of getting and display text 
input. If there is a better way then that is an acceptable solution 
(although I still consider this to be a bug).

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to