From: Joseph R. F. <ruk...@op...> - 2009-10-12 10:58:36
|
Thanks that worked. How does one use the TextView.setText() thats already defined in the TextWidget? When it cross compiles to iphone I get this error, I understand that is because android's setText takes a CharSequence. But just wondering how the setText in compat library can be called. com_home_imageviewer_ImageViewer.m:9:35: error: java_lang_CharSequence.h: No such file or directory com_home_imageviewer_ImageViewer.m: In function ‘- [com_home_imageviewer_ImageViewer onCreate___android_os_Bundle:]’: com_home_imageviewer_ImageViewer.m:164: warning: ‘android_widget_Button’ may not respond to ‘- setText___java_lang_CharSequence:’ com_home_imageviewer_ImageViewer.m:164: warning: (Messages without a matching method signature com_home_imageviewer_ImageViewer.m:164: warning: will be assumed to return ‘id’ and accept com_home_imageviewer_ImageViewer.m:164: warning: ‘...’ as arguments.) make: *** [obj/com_home_imageviewer_ImageViewer.o] Error 1 On 12/10/2009, at 12:55 AM, Wolfgang Korn wrote: > It seems that the pop2 instruction is used to clean up the stack > here. Your code computes minimum and maximum of two values but > simply ignores the computed value. To remove this computation result > pop2 seems to be used. Until we implement the missing instruction > you can simply assign the results from the calls to Math.min and > Math.max to variables. In my case this removed the pop2 from the > class file. > > One last thing: Could you please upload a patch file for your > additions to Math.m/h to our review site (http://xmlvm-reviews.appspot.com/ > ) or create a patch and send that instead of sending the whole > files? This makes it easier to merge in case if concurrent > modifications. > > -- Wolfgang > |