PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Still is helloworld question!!

After compile my helloworld program. It's work. But after I touch the screen let this program quit. It's down. The message is

2009-06-17 09:56:38.026 Helloworld[632:3c03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIApplication terminate]: unrecognized selector sent to instance 0xe12d90'

What's happen?

By the way. There is a worning in my program at line 49.
display->buffer.DrawFont(0, 0, &display-;>fontinternal, "Hello World!");
Worning message is "warning: deprecated conversion from string constant to 'char*'". How can I fix it?
Attachments:
Helloworld.zip (969 KB)
Hi,

The demo is build to exit the application when you touch the screen. So that's why the application quits.
[UIApplication terminate] is an undocumented way to quit an application. Normally you won't use this because the standard way to quit an iPhone application is to press the button.
OK, I see. Thanks your help.