RE: StringBuffer to NSData
RE: StringBuffer to NSData
- Subject: RE: StringBuffer to NSData
- From: Andy Beier <email@hidden>
- Date: Fri, 10 Sep 2004 08:07:27 -0700
- Thread-topic: StringBuffer to NSData
I believe it should go like this:
StringBuffer sb = new StringBuffer();
new NSData(sb.toString().getBytes());
Andy
-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of Nathan Dumar
Sent: Friday, September 10, 2004 6:04 AM
To: WebObjects
Subject: StringBuffer to NSData
I realize this is a very basic question, but ...
How do I convert a StringBuffer into an NSData?
I'm following some instructions to make a text file download (from
wocode.com), and the variable used is an NSData. I'm assuming this
needs to be what it is in order for the download to work, so I need to
get my text from the StringBuffer into the NSData variable. How?
Thank you,
Nathan
PS - the instructions I'm following are ...
http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem?
itemId=271&wosid=wNSsIbD8sUa57geK6nhZeM
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.