You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Panayotis K. <pan...@pa...> - 2011-07-14 07:25:15
|
On 11 Ιουλ 2011, at 9:58 μ.μ., Scott deBeaubien wrote: > Hey all - > > I figured it out. Sorry, I didn't take the time to do this on Sat. I was a little rushed. Anyhow, I got into the class: > > org.xmlvm.ant.SrcPluginExtractor > > and I found the problem. The problem was in a method called: > > ... > private File getProjectFile(String path) { > if (path.startsWith("/")) > return new File(path); > return new File(getProject().getBaseDir(), path).getAbsoluteFile(); > } > ... > > It was not written to work in Windows is all. I fixed it. > > ... > private File getProjectFile(String path) { > if ((path.startsWith("/")) || (path.indexOf(":\\") == 1)) > return new File(path); > return new File(getProject().getBaseDir(), path).getAbsoluteFile(); > } > ... > > As you can see in the redlit line, my changes are rather simpleminded, but it worked, and made all my demos compile just fine. I do have Linux (Ubuntu) installed on my machine as well, and the demos probably all would have compiled under Linux, but for whatever reason, I was not able to get them to compile under Cygwin either. > > Anyhow, consider this a proposed bug-fix now. > > Thanks! There is a more generic approach for this problem. Please update to the latest svn and tell me if it fixes the problem for you. Remember though that there are still places that require the Unix semantics and will probably break the scripts. |
From: Scott d. <sde...@ho...> - 2011-07-13 05:48:32
|
OK, I'm building apps, and I can make things sort of happen. This is in spite of the fact the docs are ... well, deficient. =) And, the samples are some help, but are there more anywhere? Anybody got any more samples they wouldn't mind parting with? I'm specifically looking for ways to do Pickers, other types of "View controllers" and so forth too. I can add simple buttons, and I can probably figure out enough to get my app to work something like "Cooktorial" but I'm not even sure I can get that far without some help. I have figured out basic buttons, screen "controllers" with status and toolbars, labels and so forth. And, I can always "paint" everything using something like iFireworks, but that is a massive overkill for what I have to do. My app is relatively simple, just some data input, interaction with a server a few state changes and that's it. I can get my data from the server just fine, the data is ideal for a "picker" (what we would call a select in HTML, no?). Didn't anybody feel like writing javadocs? I know, I know, I know, who has time? Well, right now, I sort of do. But, I'm trying to get a working sample done by the end of the week, and any help is much appreciated. Thanks in advance! -Scotty Scott deBeaubien Software Engineer Los Angeles (_Lost_ Angeles) sde...@ho... |
From: Scott d. <sde...@ho...> - 2011-07-11 18:58:56
|
Hey all - I figured it out. Sorry, I didn't take the time to do this on Sat. I was a little rushed. Anyhow, I got into the class: org.xmlvm.ant.SrcPluginExtractor and I found the problem. The problem was in a method called: ... private File getProjectFile(String path) { if (path.startsWith("/")) return new File(path); return new File(getProject().getBaseDir(), path).getAbsoluteFile(); } ... It was not written to work in Windows is all. I fixed it. ... private File getProjectFile(String path) { if ((path.startsWith("/")) || (path.indexOf(":\\") == 1)) return new File(path); return new File(getProject().getBaseDir(), path).getAbsoluteFile(); } ... As you can see in the redlit line, my changes are rather simpleminded, but it worked, and made all my demos compile just fine. I do have Linux (Ubuntu) installed on my machine as well, and the demos probably all would have compiled under Linux, but for whatever reason, I was not able to get them to compile under Cygwin either. Anyhow, consider this a proposed bug-fix now. Thanks! -Scotty Scott deBeaubien Software Engineer sde...@ho... http://sdebeaubien.comxa.com Los Angeles From: sde...@ho... To: xml...@li... Subject: newbie - question Date: Sat, 9 Jul 2011 22:24:25 +0000 Sorry to hit this list with probably an obvious question, but I can't find answers anywhere else at present. I downloaded XMLVM according to the docs, and am building it. The XMLVM portion builds fine, but the demos won't build. I get the following error with "ant demos": ... -xproject-plugins: [echo] your run classpath: C:\dev\XMLVM\xmlvm\dist\xmlvm.jar:build/classes [echo] your dest: build/plugins/objc/ BUILD FAILED C:\dev\XMLVM\xmlvm\build.xml:336: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\build.xml:46: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\nbproject\xmlvm.xml:100: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\nbproject\build-xcode.xml:52: java.io.IOException: Unable to use path C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\build\plugins\objc Total time: 21 seconds C:\dev\XMLVM\xmlvm>ant -version Apache Ant version 1.6.5 compiled on June 2 2005 ... I've included my ant version in case that matters. I'm using Java 1.6.0_14 as well, as a 1.6 VM is recommended, I should be OK, right? Anyhow, I thought there might be some bug or other in there. If needed I can build in Cygwin. The demos are ... pretty necessary at this point. It's kinda not gonna be easy to figure this out without them, eh? Thanks in advance! -Scotty Los Angeles |
From: Scott d. <sde...@ho...> - 2011-07-09 22:24:31
|
Sorry to hit this list with probably an obvious question, but I can't find answers anywhere else at present. I downloaded XMLVM according to the docs, and am building it. The XMLVM portion builds fine, but the demos won't build. I get the following error with "ant demos": ... -xproject-plugins: [echo] your run classpath: C:\dev\XMLVM\xmlvm\dist\xmlvm.jar:build/classes [echo] your dest: build/plugins/objc/ BUILD FAILED C:\dev\XMLVM\xmlvm\build.xml:336: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\build.xml:46: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\nbproject\xmlvm.xml:100: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\nbproject\build-xcode.xml:52: java.io.IOException: Unable to use path C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\build\plugins\objc Total time: 21 seconds C:\dev\XMLVM\xmlvm>ant -version Apache Ant version 1.6.5 compiled on June 2 2005 ... I've included my ant version in case that matters. I'm using Java 1.6.0_14 as well, as a 1.6 VM is recommended, I should be OK, right? Anyhow, I thought there might be some bug or other in there. If needed I can build in Cygwin. The demos are ... pretty necessary at this point. It's kinda not gonna be easy to figure this out without them, eh? Thanks in advance! -Scotty Los Angeles |
From: Sascha H. <sa...@xm...> - 2011-07-05 16:10:33
|
Hi Simon, unfortunately not. XMLVM will create an Xcode project for you that you then need to compile on a Mac. Because we include paths in some of these files, you cannot generate the Xcode project on a Windows machine and then copy it to a Mac. You need to run the whole pipeline on a Mac for this to work properly. We would love to be able to not be Mac-bound for iOS app development, but that's not really our choice to make. Hope that makes sense. // Sascha On Tue, Jul 5, 2011 at 5:36 PM, Simon Brewin <si...@gm...> wrote: > Hi Sascha, > thank you for your reply. I am developing for android and want to cross > compile for the iPhone. Can this be done using a pc running eclipse? > Thanks > Simon > > On 5 July 2011 15:53, Sascha Haeberling <sa...@xm...> wrote: > >> Hi Simon, >> >> thank you for your interest. XMLVM itself is platform-independent. >> However, if you use XMLVM to produce and iOS application, then OSX is a >> prerequisite. There is not much we can do about it, as Apple only supports >> OSX. >> >> For other targets, such as the C target, you can use Windows and Linux as >> well. >> >> // Sascha >> >> On Tue, Jul 5, 2011 at 2:07 PM, Simon Brewin <si...@gm...> wrote: >> >>> Hello, >>> I've been searching around about xmlvm and all the info I have so far >>> seems to indicate that it can only be run on a mac computer, is this right? >>> Are there any plans to make it compatible with Eclipse running on windows 7? >>> If so, is there a dummies guide to installing and running it, I'm very >>> new to the whole developer thing? >>> Many thanks >>> Simon Brewin >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >>> >> > |
From: Sascha H. <sa...@xm...> - 2011-07-05 14:53:31
|
Hi Simon, thank you for your interest. XMLVM itself is platform-independent. However, if you use XMLVM to produce and iOS application, then OSX is a prerequisite. There is not much we can do about it, as Apple only supports OSX. For other targets, such as the C target, you can use Windows and Linux as well. // Sascha On Tue, Jul 5, 2011 at 2:07 PM, Simon Brewin <si...@gm...> wrote: > Hello, > I've been searching around about xmlvm and all the info I have so far seems > to indicate that it can only be run on a mac computer, is this right? Are > there any plans to make it compatible with Eclipse running on windows 7? > If so, is there a dummies guide to installing and running it, I'm very new > to the whole developer thing? > Many thanks > Simon Brewin > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Simon B. <si...@gm...> - 2011-07-05 12:08:00
|
Hello, I've been searching around about xmlvm and all the info I have so far seems to indicate that it can only be run on a mac computer, is this right? Are there any plans to make it compatible with Eclipse running on windows 7? If so, is there a dummies guide to installing and running it, I'm very new to the whole developer thing? Many thanks Simon Brewin |
From: Panayotis K. <pan...@pa...> - 2011-07-04 20:50:48
|
On Jul 4, 2011, at 2:09 PM, Steven Atkinson wrote: > The message is: > > /Users/tetrad/NetBeansProjects/app/dist/../build/xcode/src/trim/my_app_Main.m:8:25: error: MyFoundation.h: No such file or directory > > I am using NetBeans and XCode 4.0.2 if that helps. > > Steve > > Can you send me a list of files that are under build/xcode/src/trim ? |
From: Steven A. <ste...@gm...> - 2011-07-04 11:09:42
|
The message is: /Users/tetrad/NetBeansProjects/app/dist/../build/xcode/src/trim/my_app_Main.m:8:25: error: MyFoundation.h: No such file or directory I am using NetBeans and XCode 4.0.2 if that helps. Steve ----- Original Message ----- From: Panayotis Katsaloulis Sent: 07/04/11 11:37 AM To: XMLVM User Subject: Re: [xmlvm-users] Write access on the iPhone On 04 Ιουλ 2011, at 11:54 π.μ., Steven Atkinson wrote: I have just updated to the latest revision and the messeage still appears. This is a snippet of how I am using the class import org.xmlvm.iphone.Foundation; public class Settings { public static final String documentsFolder = Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0); } However when I look into the Java implementation it just looks like this: public static ArrayList<String> NSSearchPathForDirectoriesInDomains(int NSSearchPathDirectory, int NSSearchPathDomainMask, boolean expandTilde) { ArrayList<String> res = new ArrayList<String>(); return null; } so tbh I wouldn't expect it to be doing anything anyway (unless there is something in the Obj-C backend?) Of course, the Java code is only a placeholder. The actual job is done in the ObjC backend. I wrote this code: System.out.println(Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0)); and it works. Just to be safe, perform "ant clean" first. |
From: Steven A. <ste...@gm...> - 2011-07-04 11:05:24
|
I have tried that and I am still getting the same message from XCode: ----- Original Message ----- From: Panayotis Katsaloulis Sent: 07/04/11 11:37 AM To: XMLVM User Subject: Re: [xmlvm-users] Write access on the iPhone On 04 Ιουλ 2011, at 11:54 π.μ., Steven Atkinson wrote: I have just updated to the latest revision and the messeage still appears. This is a snippet of how I am using the class import org.xmlvm.iphone.Foundation; public class Settings { public static final String documentsFolder = Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0); } However when I look into the Java implementation it just looks like this: public static ArrayList<String> NSSearchPathForDirectoriesInDomains(int NSSearchPathDirectory, int NSSearchPathDomainMask, boolean expandTilde) { ArrayList<String> res = new ArrayList<String>(); return null; } so tbh I wouldn't expect it to be doing anything anyway (unless there is something in the Obj-C backend?) Of course, the Java code is only a placeholder. The actual job is done in the ObjC backend. I wrote this code: System.out.println(Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0)); and it works. Just to be safe, perform "ant clean" first. |
From: Panayotis K. <pan...@pa...> - 2011-07-04 10:37:23
|
On 04 Ιουλ 2011, at 11:54 π.μ., Steven Atkinson wrote: > > I have just updated to the latest revision and the messeage still appears. > > > This is a snippet of how I am using the class > > import org.xmlvm.iphone.Foundation; > > public class Settings { > public static final String documentsFolder = Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0); > } > > However when I look into the Java implementation it just looks like this: > > public static ArrayList<String> NSSearchPathForDirectoriesInDomains(int NSSearchPathDirectory, > int NSSearchPathDomainMask, boolean expandTilde) { > ArrayList<String> res = new ArrayList<String>(); > return null; > } > > so tbh I wouldn't expect it to be doing anything anyway (unless there is something in the Obj-C backend?) Of course, the Java code is only a placeholder. The actual job is done in the ObjC backend. I wrote this code: System.out.println(Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0)); and it works. Just to be safe, perform "ant clean" first. |
From: Steven A. <ste...@gm...> - 2011-07-04 08:55:00
|
I have just updated to the latest revision and the messeage still appears. This is a snippet of how I am using the class import org.xmlvm.iphone.Foundation; public class Settings { public static final String documentsFolder = Foundation.NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Document, NSSearchPathDomainMask.UserDomain, true).get(0); } However when I look into the Java implementation it just looks like this: public static ArrayList<String> NSSearchPathForDirectoriesInDomains(int NSSearchPathDirectory, int NSSearchPathDomainMask, boolean expandTilde) { ArrayList<String> res = new ArrayList<String>(); return null; } so tbh I wouldn't expect it to be doing anything anyway (unless there is something in the Obj-C backend?) P.S. I do apologise for these posts being made into seperate threads. My options weren't set correctly! On 04 Ιουλ 2011, at 11:02 π.μ., Steven Atkinson wrote: > I have been trying to use the Foundation class but each time I compile with XCode it says it can't find MyFoundation.h > I have been using NSBundle.mainBundle().bundlePath to write to the iPhone but this only seems to work on the simulator and not the device. > > Is there anyone else having an issue with the Foundation class? Have you updated to the latest SVN? Can you provide the actual Java code you are using? |
From: Panayotis K. <pan...@pa...> - 2011-07-04 08:14:28
|
On 04 Ιουλ 2011, at 11:02 π.μ., Steven Atkinson wrote: > I have been trying to use the Foundation class but each time I compile with XCode it says it can't find MyFoundation.h > I have been using NSBundle.mainBundle().bundlePath to write to the iPhone but this only seems to work on the simulator and not the device. > > Is there anyone else having an issue with the Foundation class? Have you updated to the latest SVN? Can you provide the actual Java code you are using? |
From: Steven A. <ste...@gm...> - 2011-07-04 08:13:17
|
Hmmm not long after I posted that it didn't work it started to work again (I can't remember if another build came out around that time). I don't remember changing any of my code or changing the xmlvm.properties file. I didn't put a lock on any object or add any notifies or waits in my code (The thread just notifies that it has finished when it changes a label and stops the UIActivityIndicator). I did put the declaration of my Thread variable outside of the function that uses it while I was experimenting with the notify and wait functions, so perhaps that may have fixed something. And thanks for the responses :) Steve |
From: Steven A. <ste...@gm...> - 2011-07-04 08:03:02
|
I have been trying to use the Foundation class but each time I compile with XCode it says it can't find MyFoundation.h I have been using NSBundle.mainBundle().bundlePath to write to the iPhone but this only seems to work on the simulator and not the device. Is there anyone else having an issue with the Foundation class? Steve |
From: Kit <bro...@ya...> - 2011-07-02 05:02:18
|
Hello, I've been making a bunch of android apps and thought it would be nice to get on to the iPhone market but trying to learn IOS's objective c seems much more daunting a task then it was to learn Android's Java. plus I like the idea of having only one code base to do all the development work on so I'd give your thing a shot. I was able to download your stuff following the instructions in the manual.pdf file on your site. and when I ran ant on it like your guide said to do and it built properly. then I went to invoke it to cross compile a test android app I slapped together in eclipse for the iPhone. my command line java -Xmx256m -jar xmlvm.jar --in=/android/workspace/test --out=/Users/brownwolf_98/Documents/droid --target=iphone --iphone-app=hellotest at first I was getting tons of memory errors but after some research I discovered a way to allocate more memory to the java process; the -Xmx256m switch I put that on and then it built gave me a slew of warnings but it did say it built successfully. btw the path I put for in was the root folder of the eclipse project I had made. and the out was a random directory that was empty I was going to use the target android-on-iphone as when it was going though what each command like option did it said in addition to translating from java to iPhone it'll copy in the stuff needed to make android apps work but it didn't accept that argument so I settled for iphone. next I went into Xcode (I got the paid version 4) and created a new project like you asked using the default settings and deleted the files the pdf said to remove. there was no "project > Add to project" option or project menu that I could see. closet I could find is if I right clicked on the project i'd get a "add to <project name>" and so I added the stuff there got tons of errors, tried to do some guessing to move the files around got less errors. now it was down to basically saying it couldn't find a bunch of files I ran a search for said files found them in the folder I downloaded your source code in. and dumped everything in that directory into the supporting files folder. and tried to build again, well it spend much more time building and got up to 623 warnings before I got build failed and a whole bunch of errors. not sure what I'm doing wrong here and the test project I'm using is basically just a hello world one I can post the list of errors or send them to someplace if you wish but I'm unsure what to do from here. |
From: Panayotis K. <pan...@pa...> - 2011-07-01 21:30:01
|
On Jul 2, 2011, at 12:03 AM, Paul Poley wrote: > Gotcha. Yeah, that's fine as long as it's trimming it everywhere. > > Paul Strangely, I have the same issues with Steven when I enable the trimmer (although the change is everywhere in the code). I have seen that if trimmer is enabled, the code breaks with the specific error message, while when it is disabled it works. I didn't investigate much, since I am looking forward for the C backend now, but this is something that bothered me. |
From: Paul P. <bay...@gm...> - 2011-07-01 21:03:36
|
Gotcha. Yeah, that's fine as long as it's trimming it everywhere. Paul On Fri, Jul 1, 2011 at 3:55 PM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On Jul 1, 2011, at 9:25 PM, Paul Poley wrote: > > > I don't see all the relevant snippets, but believe I know what's > happening, and this is expected behavior. The short of it is that when you > call "obj.notifyAll()", you should already be synchronized on "obj", which > it appears you are not. This is true in Java as well as XMLVM, whether > using the C or Obj-C version. Note that I am saying that "notifyAll" needs > to be synchronized, but so does the "wait". > > > > Your stacktrace says "notifyAllx", which I assume should be "notifyAll". > You are using the Obj-C backend, so that has been the case for a while. > The wait, notify, etc. for the C backend has only recently been > implemented. > > > > Thanks, > > Paul > > > > Paul, > This is also a question from my side. > The reason this "x" appears at the end of the notifyAll in ObjC is because > this piece of code is passed through the "trimmer" extension, which replaces > everywhere the "__" characters to "x". > Is there any reason that the name of the function should remain > "notifyAll__" and not change to something different, but compatible across > the whole code? > > > Steven, > if you just want a wuick hack to make things a bit more relaxed, edit > xmlvm.properties file and set trimmer to false > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Panayotis K. <pan...@pa...> - 2011-07-01 20:55:11
|
On Jul 1, 2011, at 9:25 PM, Paul Poley wrote: > I don't see all the relevant snippets, but believe I know what's happening, and this is expected behavior. The short of it is that when you call "obj.notifyAll()", you should already be synchronized on "obj", which it appears you are not. This is true in Java as well as XMLVM, whether using the C or Obj-C version. Note that I am saying that "notifyAll" needs to be synchronized, but so does the "wait". > > Your stacktrace says "notifyAllx", which I assume should be "notifyAll". You are using the Obj-C backend, so that has been the case for a while. The wait, notify, etc. for the C backend has only recently been implemented. > > Thanks, > Paul Paul, This is also a question from my side. The reason this "x" appears at the end of the notifyAll in ObjC is because this piece of code is passed through the "trimmer" extension, which replaces everywhere the "__" characters to "x". Is there any reason that the name of the function should remain "notifyAll__" and not change to something different, but compatible across the whole code? Steven, if you just want a wuick hack to make things a bit more relaxed, edit xmlvm.properties file and set trimmer to false |
From: Paul P. <bay...@gm...> - 2011-07-01 18:25:17
|
I don't see all the relevant snippets, but believe I know what's happening, and this is expected behavior. The short of it is that when you call "obj.notifyAll()", you should already be synchronized on "obj", which it appears you are not. This is true in Java as well as XMLVM, whether using the C or Obj-C version. Note that I am saying that "notifyAll" needs to be synchronized, but so does the "wait". Your stacktrace says "notifyAllx", which I assume should be "notifyAll". You are using the Obj-C backend, so that has been the case for a while. The wait, notify, etc. for the C backend has only recently been implemented. Thanks, Paul On Fri, Jul 1, 2011 at 5:38 AM, Steven Atkinson <ste...@gm...>wrote: > Hi, > > I am getting an error when my a function in another thread finishes. Here > is the message that appears in the log window. > > 2011-07-01 11:29:40.230 ThreadingTest[12323:7703] *** Terminating app due > to uncaught exception 'MyIllegalMonitorStateException', reason: '(null)' > *** Call stack at first throw: > ( > 0 CoreFoundation 0x019995a9 > __exceptionPreprocess + 185 > 1 libobjc.A.dylib 0x01aed313 objc_exception_throw > + 44 > 2 TetradProductList 0x0002a31e > -[NSObject(cat_MyObject) checkSynchronized] + 301 > 3 TetradProductList 0x0002b034 > -[NSObject(cat_MyObject) notifyAllx] + 37 > 4 TetradProductList 0x0002e119 -[MyThread > threadCallback:] + 262 > 5 Foundation 0x000f4cf4 -[NSThread main] + > 81 > 6 Foundation 0x000f4c80 __NSThread__main__ + > 1387 > 7 libSystem.B.dylib 0x983c4819 _pthread_start + 345 > 8 libSystem.B.dylib 0x983c469e thread_start + 34 > ) > terminate called after throwing an instance of > 'MyIllegalMonitorStateException' > > > I recall a previous post where Paul said he had done some work on some of > the threading functions (sleep(), wait() etc.) > Is there anything I should be doing at the end of the function to remove > the thread? > > > @Override > public void viewDidLoad() { > super.viewDidLoad(); > ShowSynchronizeAlert(); > } > > public void ShowSynchronizeAlert(){ > > try > { > UIAlertView av = new UIAlertView("Attention", "Do you want to > synchronize?", > new UIAlertViewDelegate() { > > @Override > public void clickedButtonAtIndex(UIAlertView uiav, int i) { > switch(i) > { > case 0: > try > { > Thread t = new Thread(new Runnable() { > public void run() { > try > { > Synchronize(); > } > catch(Exception e) > { > Logging.Error(e); > } > } > }); > t.start(); > } > catch(Exception e) > { > Logging.Error(e); > } > break; > case 1: > // Do nothing > break; > } > } > }, "OK"); > av.addButtonWithTitle("No"); > av.show(); > } > catch(Exception e) > { > Logging.Error(e); > } > } > > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Panayotis K. <pan...@pa...> - 2011-07-01 15:04:09
|
On 01 Ιουλ 2011, at 4:35 μ.μ., Steven Atkinson wrote: > Hi all, > > I am trying to save some PDF and csv files onto the iPhone without success. I would usually go to the Documents directory of the app (although I see that NSSearchForDirectoriesInDomains is not yet fully implemented). I have modified NSData to write the bytes to a file (which it says it has) but no new file appears. > > I can see from a mail from 2009-10-07 where Arno explained that he was working on the read-file API. Has there been any progress on the write side of it? > > > Thanks, > > Steve DId you have a look at a recent version of XMLVM? RIght now, there is an object, Foundation, which should support what you ask |
From: Steven A. <ste...@gm...> - 2011-07-01 13:35:25
|
Hi all, I am trying to save some PDF and csv files onto the iPhone without success. I would usually go to the Documents directory of the app (although I see that NSSearchForDirectoriesInDomains is not yet fully implemented). I have modified NSData to write the bytes to a file (which it says it has) but no new file appears. I can see from a mail from 2009-10-07 where Arno explained that he was working on the read-file API. Has there been any progress on the write side of it? Thanks, Steve |
From: Steven A. <ste...@gm...> - 2011-07-01 10:39:06
|
Hi, I am getting an error when my a function in another thread finishes. Here is the message that appears in the log window. 2011-07-01 11:29:40.230 ThreadingTest[12323:7703] *** Terminating app due to uncaught exception 'MyIllegalMonitorStateException', reason: '(null)' *** Call stack at first throw: ( 0 CoreFoundation 0x019995a9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x01aed313 objc_exception_throw + 44 2 TetradProductList 0x0002a31e -[NSObject(cat_MyObject) checkSynchronized] + 301 3 TetradProductList 0x0002b034 -[NSObject(cat_MyObject) notifyAllx] + 37 4 TetradProductList 0x0002e119 -[MyThread threadCallback:] + 262 5 Foundation 0x000f4cf4 -[NSThread main] + 81 6 Foundation 0x000f4c80 __NSThread__main__ + 1387 7 libSystem.B.dylib 0x983c4819 _pthread_start + 345 8 libSystem.B.dylib 0x983c469e thread_start + 34 ) terminate called after throwing an instance of 'MyIllegalMonitorStateException' I recall a previous post where Paul said he had done some work on some of the threading functions (sleep(), wait() etc.) Is there anything I should be doing at the end of the function to remove the thread? @Override public void viewDidLoad() { super.viewDidLoad(); ShowSynchronizeAlert(); } public void ShowSynchronizeAlert(){ try { UIAlertView av = new UIAlertView("Attention", "Do you want to synchronize?", new UIAlertViewDelegate() { @Override public void clickedButtonAtIndex(UIAlertView uiav, int i) { switch(i) { case 0: try { Thread t = new Thread(new Runnable() { public void run() { try { Synchronize(); } catch(Exception e) { Logging.Error(e); } } }); t.start(); } catch(Exception e) { Logging.Error(e); } break; case 1: // Do nothing break; } } }, "OK"); av.addButtonWithTitle("No"); av.show(); } catch(Exception e) { Logging.Error(e); } } |
From: Arno P. <ar...@pu...> - 2011-06-23 15:29:20
|
Try to use the C backend to cross-compile your application. It is possible that there is a native method is missing somewhere, but that should be easy to fix. Arno On Jun 22, 2011, at 4:54 PM, Steven Atkinson <ste...@gm...> wrote: Hi, I am trying to parse some modified dates of files but I am running into a few problems. Below is the structure I have used to parse the date string from an FTP callback to a Date type in order to compare it with a file on the device: class FileWithDate { public final String fileName; public final Date fileDate; public FileWithDate(String fileName, String fileDate){ Date parsedDate = null; try { DateFormat formatter = new SimpleDateFormat("MMM dd HH:mm"); parsedDate = (Date)formatter.parse(fileDate); } catch (Exception e) { Logging.Error(e); } this.fileName = fileName; this.fileDate = parsedDate; } } Is there anything in the NSDate type I can use to parse a string to a date? Whenever I try to compile the code above on XCode it fails to build as it can't find the files. I guess this has not been written yet? Would be greatful for any help :) Steve ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ xmlvm-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-users |