From: Axel M. R. <rub...@ro...> - 2008-04-25 12:41:38
|
Hi, I want to show an alert to the user that the RubyCocoa program needs at least Leopard to run. However, since RubyCocoa could not be installed on a 10.4 system, the dialog needs to be put up in Obj-C. I know how to do that, but not in the main.m file: the application is not inited yet. I know this is not a RC question, but related IMHO: everyone who wants to put out rubycocoa programs either needs to a) bundle the rubycocoa and ruby libraries and/or b) check the OS version and put up a dialog for the user else your application silently fails on older OSes, like LimeChat. Bundling the ruby libraries proved too much work for me, so now i 'simply' want to inform the user that the app needs a newer OS. I use NSAlert alertWithMessageText in the main app, before the RBApplicationMain is called. The alert is never shown. I tried initialising the NSApp environment by calling [NSApplication sharedApplication] to no avail. Probably because the NSApp environment is not yet ready, but how do I otherwise inform the user in a Maclike way that she needs to upgrade? tail -f /var/log/system.log is not what I call userfriendly ;-) Axel -- _________________________ Axel Roest axelloroestello@{AIM/MSN} - Skype:axellofono - XOIP: 084-8749988 |