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: 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 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 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: 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: 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: 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? |