• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I make NSData from cabron-Handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How do I make NSData from cabron-Handle
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: How do I make NSData from cabron-Handle (From: Gore <email@hidden>)

  • Prev by Date: Re: How viable is Cocoa development?
  • Next by Date: Re: How viable is Cocoa development?
  • Previous by thread: Re: How do I make NSData from cabron-Handle
  • Next by thread: Re: How do I make NSData from cabron-Handle
  • Index(es):
    • Date
    • Thread