Re: How do I make NSData from cabron-Handle
Re: How do I make NSData from cabron-Handle
- Subject: Re: How do I make NSData from cabron-Handle
- From: Ondra Cada <email@hidden>
- Date: Sat, 26 Jan 2002 17:04:39 +0100
Gore,
>
>>>>> Gore (G) wrote at Sat, 26 Jan 2002 17:53:51 +0200:
G> hmm, yeah, but I want the data in the handle to be encoded, I want the
G> *data* to be saved to the HD using coco calls =)
IIRC (it's a long long time I've programmed Classic), handle is just a
double pointer, right? Well, if so, you need to know the size of the data,
and then you can do
NSData *d=[NSData dataWithBytes:*handle length:sizeWhichYouKnow];
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc