Post Reply 
Programmatically changing Entry mode crashes iOS Pro App
05-28-2020, 05:59 AM
Post: #6
RE: Programmatically changing Entry mode crashes iOS Pro App
Hello,

User keys can return 3 things:
1) a string. In this case, this string will be treated as a "textEvent", which, in most cases means that it gets sent to the command line.
2) a number between 0 and 51*4(?). This number is treated as a keycode which gets executed if possible.
3) -1. In this case nothing else happends...

Now, the problem is that, in the case of string or number, the message gets sent to the window/control that received the original message.
BUT, if your code causes a view change (setview or, in your case a switch of entry mode), said window/control is destroyed before the 2nd action is executed. So the message goes nowhere... Causing the issue.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programmatically changing Entry mode crashes iOS Pro App - cyrille de brébisson - 05-28-2020 05:59 AM



User(s) browsing this thread: 1 Guest(s)