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: Gore <email@hidden>
- Date: Sat, 26 Jan 2002 19:56:26 +0200
YADDELAHIHU!!!!
thx!, you are now added to the "special thx to..." list !
thx for the help!
On Saturday, January 26, 2002, at 06:09 , Jim Correia wrote:
- (NSData *)dataWithHandle:(Handle)h
{
// on 9 we would lock the handle, on X handles
// only move if you resize them
return [NSData dataWithBytes: (*h) length: GetHandleSize(h)];
}
- (Handle)newHandleFromData:(NSData *)
{
Handle h = NewHandle([data length]);
if (h != NULL)
[data getBytes: *h]
return h;
}