Re: com.webobjects.foundation.NSData vs. Cocoa NSData
Re: com.webobjects.foundation.NSData vs. Cocoa NSData
- Subject: Re: com.webobjects.foundation.NSData vs. Cocoa NSData
- From: Chuck Hill <email@hidden>
- Date: Wed, 12 Nov 2008 11:09:51 -0800
On Nov 12, 2008, at 11:05 AM, Jaime Magiera wrote:
Hi,
I'm trying to get back into the swing of doing property list stuff
in WO/Java. Back in the day, I was just communicating between WO
apps and things were a bit more simple. Now, I'm trying to
communicate between WO/Java and Cocoa. One thing that popped up was
the writing of plists via NSPropertylistSerialization. When writing
the WO NSData to file, it is of type
com.webobjects.foundation.NSData. What would be the method for
coercing NSPropertylistSerialization to write the data object to
file just as Cocoa NSData (i.e. "data"). I can do the raw XML if
need be, but thought there might be a way to avoid going down to
that level.
thanks for any ideas,
Jaime Magiera
Sensory Research
http://www.sensoryresearch.net
stringFromPropertyList
public static String stringFromPropertyList(Object plist)
Converts a property list object into a string (old style plist) and
returns it. All entries are indented.
I use this for data exchange with Cocoa apps. Not a problem in sight.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden