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. |