From: <D.D...@ak...> - 2011-04-01 08:11:24
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi everybody,<br><br>I'm trying to implement a sort of progress dialog containing a spinning gear, to let users now that an action is being performed and they should wait. I'm trying to do it using the UIAlertView class and adding the UIActivityIndicatorView as a subview. However, I'm having problems setting the position of the UIActivityIndicatorView; exploring the UIAlertView class in AMAK I found out that the getFrame() method doesn't return the correct size of the dialog.<br>Apparently, what I need is the viewingArea variable of the UIAlertViewRenderer; however, I tried to retrieve that parameter by creating a getter but nothing happens. I even tried to insert the UIActivityIndicatorView directly in the doLayout() method and still nothing happens.<br>Could you suggest me the correct way of doing this?<br><br>Thank you,<br><br>Domenico De Fano<br> </div></font> |
From: Arno P. <ar...@pu...> - 2011-04-02 00:15:59
|
You mentioned class UIAlertViewRenderer. This is an internal class for our Java based iPhone emulator. Where do you have your problems? With our Java emulator or with the cross compiled application? Note that our Java emulator is more a proof of concept and we have no plans to keep it up to date. Arno On Apr 1, 2011, at 1:11 AM, "D.D...@ak..." <D.D...@ak...> wrote: Hi everybody, I'm trying to implement a sort of progress dialog containing a spinning gear, to let users now that an action is being performed and they should wait. I'm trying to do it using the UIAlertView class and adding the UIActivityIndicatorView as a subview. However, I'm having problems setting the position of the UIActivityIndicatorView; exploring the UIAlertView class in AMAK I found out that the getFrame() method doesn't return the correct size of the dialog. Apparently, what I need is the viewingArea variable of the UIAlertViewRenderer; however, I tried to retrieve that parameter by creating a getter but nothing happens. I even tried to insert the UIActivityIndicatorView directly in the doLayout() method and still nothing happens. Could you suggest me the correct way of doing this? Thank you, Domenico De Fano ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Xmlvm-developers mailing list Xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |
From: Domenico De F. <dom...@gm...> - 2011-04-02 19:38:56
|
Hi, Thank you Arno for your help, you're right. I noticed yesterday that I was trying to use the Java simulator classes to modify the behavior of the Obj-C application. However I'm still having problems in positioning the gear inside the alert. In fact, since I have some dinamically generated message in the alert, its dimension and position should be dynamic too. If I just insert the gear as a subview of the alert I get it into a weird position on the left side of the screen. I tried to use the getCenter() method of the alert in order to position the gear always in the alerts' center, but it doesn't seem to work. Do you know what that might be? Thanks, Domenico De Fano |
From: Arno P. <ar...@pu...> - 2011-04-02 21:13:27
|
to be honest, I don't think this is an XMLVM related problem. Although UIAlertView inherits from UIView, I'm not sure if you are supposed to add subviews. Any Cocoa Touch cracks out there? Arno On 4/2/11 12:38 PM, Domenico De Fano wrote: > Hi, > > Thank you Arno for your help, you're right. I noticed yesterday that I was > trying to use the Java simulator classes to modify the behavior of the > Obj-C application. > However I'm still having problems in positioning the gear inside the > alert. In fact, since I have some dinamically generated message in the > alert, its dimension and position should be dynamic too. > If I just insert the gear as a subview of the alert I get it into a > weird position on the left side of the screen. I tried to use the > getCenter() method of the alert in order to position the gear always in > the alerts' center, but it doesn't seem to work. Do you know what that > might be? > > Thanks, > > Domenico De Fano > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > > > > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |
From: Domenico De F. <dom...@gm...> - 2011-04-02 21:34:38
|
Hi, I found an Objective-C example that worked and wanted to replicate it. In fact I think that's not the best way of doing it, but I couldn't find any other. I wonder if there is an official way of customizing dialogs. Still it seems strange that the getCenter() method doesn't work on the dialog while the getBounds() does. Domenico De Fano Le 2 avr. 2011 à 23:13, Arno Puder a écrit : > > to be honest, I don't think this is an XMLVM related problem. Although > UIAlertView inherits from UIView, I'm not sure if you are supposed to > add subviews. > > Any Cocoa Touch cracks out there? > > Arno > > > On 4/2/11 12:38 PM, Domenico De Fano wrote: >> Hi, >> >> Thank you Arno for your help, you're right. I noticed yesterday that I was >> trying to use the Java simulator classes to modify the behavior of the >> Obj-C application. >> However I'm still having problems in positioning the gear inside the >> alert. In fact, since I have some dinamically generated message in the >> alert, its dimension and position should be dynamic too. >> If I just insert the gear as a subview of the alert I get it into a >> weird position on the left side of the screen. I tried to use the >> getCenter() method of the alert in order to position the gear always in >> the alerts' center, but it doesn't seem to work. Do you know what that >> might be? >> >> Thanks, >> >> Domenico De Fano >> >> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> >> >> >> _______________________________________________ >> Xmlvm-developers mailing list >> Xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |
From: Panayotis K. <pan...@pa...> - 2011-04-04 08:07:32
|
On Apr 3, 2011, at 12:35 AM, Domenico De Fano wrote: > Hi, > > I found an Objective-C example that worked and wanted to replicate it. In fact I think that's not the best way of doing it, but I couldn't find any other. I wonder if there is an official way of customizing dialogs. > Still it seems strange that the getCenter() method doesn't work on the dialog while the getBounds() does. > > Domenico De Fano I think the documentation says that you are not clearly allowed to do so. I think I've read (but I am not sure) that this behavior trigged also the application reject mechanism, although it is true that you can now find applications that are using it more or less. In any case, xmlvm does not interfere with the procedure. The most common reason for his problem though is that he is not using the examples he found the way he should. My guess is, sInce this is a fragile feature by definition, probably the steps you are following are not exactly the correct ones. |
From: <D.D...@ak...> - 2011-04-05 13:20:37
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi, <br><br>Thank you for your help. The example I used is the following ()<br><br><h1 class="objc" style="font-family: monospace; font-weight: normal; font-style: italic;"><font size="3">UIAlertView <font color="#002200">*</font>alert;<br> <br>...<br> <br>alert <font color="#002200">=</font> <font color="#002200">[</font><font color="#002200">[</font><font color="#002200">[</font>UIAlertView alloc<font color="#002200">]</font> initWithTitle<font color="#002200">:</font><font color="#bf1d1a">@</font><font color="#bf1d1a">"Configuring Preferences<font color="#2400d9">\n</font>Please Wait..."</font><font color="#002200">:</font><font color="#a61390">nil</font> delegate<font color="#002200">:</font>self cancelButtonTitle<font color="#002200">:</font><font color="#a61390">nil</font> otherButtonTitles<font color="#002200">:</font> <font color="#a61390">nil</font><font color="#002200">]</font> autorelease<font color="#002200">]</font>;<br><font color="#002200">[</font>alert show<font color="#002200">]</font>;<br> <br>UIActivityIndicatorView <font color="#002200">*</font>indicator <font color="#002200">=</font> <font color="#002200">[</font><font color="#002200">[</font>UIActivityIndicatorView alloc<font color="#002200">]</font><font color="#002200">:</font>UIActivityIndicatorViewStyleWhiteLarge<font color="#002200">]</font>;<br> <br><font color="#11740a">// Adjust the indicator so it is up a few pixels from the bottom of the alert</font><br>indicator.center <font color="#002200">=</font> CGPointMake<font color="#002200">(</font>alert.bounds.size.width <font color="#002200">/</font> <font color="#2400d9">2</font>, alert.bounds.size.height <font color="#002200">-</font><font color="#2400d9">50</font><font color="#002200">)</font>;<br><font color="#002200">[</font>indicator startAnimating<font color="#002200">]</font>;<br><font color="#002200">[</font>alert addSubview<font color="#002200">:</font>indicator<font color="#002200">]</font>;<br><font color="#002200">[</font>indicator release<font color="#002200">]</font>; message initWithActivityIndicatorStyle</font></h1><br>which, in Java, I used as<br><br><font style="font-style: italic; font-family: Default Monospace,Courier New,Courier,monospace;" size="2">UIAlertView alert = new UIAlertView(message, null, null, null);<br>UIActivityIndicatorView indicator = new UIActivityIndicatorView(0);<br>CGPoint center = new CGPoint(</font><font style="font-style: italic; font-family: Default Monospace,Courier New,Courier,monospace;" size="2">alert.getbounds().size.width <font color="#002200">/</font> <font color="#2400d9">2</font>, alert.getbounds().size.height <font color="#002200">-</font><font color="#2400d9">50</font><font color="#002200">)</font>;<br>indicator.setCenter(center);</font><br>indicator.startAnimating();<br>alert.addSubview(indicator);<br><br><br>I really can't figure out what's wrong. Maybe I should try to use a UIProgressView instead, but still I'm interested in this to add some modifications to the dialog.<br><br><br>Thank you,<br><br>Domenico<br><br></div><font color="#990099">-----Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a> a écrit : -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">A : <a class="moz-txt-link-abbreviated" href="mailto:xml...@li...">xml...@li...</a><br>De : Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a><br>Date : 04/04/2011 10:07<br>Objet : Re: [xmlvm-dev] UIAlertViewDelegate<br><br><font face="Courier New,Courier,monospace" size="3"><br>On Apr 3, 2011, at 12:35 AM, Domenico De Fano wrote:<br><br>> Hi,<br>> <br>> I found an Objective-C example that worked and wanted to replicate it. In fact I think that's not the best way of doing it, but I couldn't find any other. I wonder if there is an official way of customizing dialogs.<br>> Still it seems strange that the getCenter() method doesn't work on the dialog while the getBounds() does.<br>> <br>> Domenico De Fano<br><br><br>I think the documentation says that you are not clearly allowed to do so. I think I've read (but I am not sure) that this behavior trigged also the application reject mechanism, although it is true that you can now find applications that are using it more or less.<br><br>In any case, xmlvm does not interfere with the procedure. The most common reason for his problem though is that he is not using the examples he found the way he should. My guess is, sInce this is a fragile feature by definition, probably the steps you are following are not exactly the correct ones.<br>------------------------------------------------------------------------------<br>Create and publish websites with WebMatrix<br>Use the most popular FREE web apps or write code yourself; <br>WebMatrix provides all the features you need to develop and <br>publish your website. <a href="http://p.sf.net/sfu/ms-webmatrix-sf">http://p.sf.net/sfu/ms-webmatrix-sf</a><br>_______________________________________________<br>Xmlvm-developers mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Xml...@li...">Xml...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/xmlvm-developers">https://lists.sourceforge.net/lists/listinfo/xmlvm-developers</a><br></font> </blockquote><br></font> |