[Mono-osx] Writing data to Cocoa plist
gareth.baker at stfc.ac.uk
gareth.baker at stfc.ac.uk
Mon Nov 1 05:30:09 EDT 2010
Hi,
Hope the list can help again! I'm converting a Cocoa example I found on
the web to Mono(Mac). I can now get it running putting up a sheet and
communicating with an ArrayController but I've come up to a block on
reading/saving the data to a plist. The Cocoa code is simple enough :-
NSMutableArray *contactsFile = [[NSMutableArray alloc]
initWithContentsOf File:filepath]; // file path defined elsewhere as
plist in bundle
// then later after data has been added
[[arrayContacts arrangedObjects] writeToFile:filePath atomically:YES];
//arrayContacts is the NSArrayController
Has anyone any experience with this in MonoMac?
Thanks for the help
Gareth Baker
PS there is a problem with Reference Binding code generation in
MonoDevelop but I can hack that!!
--
Scanned by iCritical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101101/523da416/attachment.html
More information about the Mono-osx
mailing list