@Override protected void afterMarshaled() { if (adapter == null) { adapter = createAdapter(); } super.afterMarshaled(); }
/** * Saves a property list with the given object as root into a XML file * * @param root the root object * @param out the output file * @throws java.lang.Exception */ public static void saveAsXML(NSObject root, File out) throws Exception { FileWriter fw = new FileWriter(out); fw.write(root.toXMLPropertyList()); fw.close(); }