• 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: Is there any compression library for Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there any compression library for Cocoa?


  • Subject: Re: Is there any compression library for Cocoa?
  • From: email@hidden
  • Date: Wed, 30 Apr 2008 12:39:53 +0200


On 30 Apr 2008, at 12:35, Trygve Inda wrote:

So why the need for + dataWithBytesNoCopy:length:freeWhenDone: ?

It would seem that if freeWhenDone is YES, these are identical calls?

Because sometimes you might want to use NO. i.e maybe its a non- malloced buffer that you want to treat as NSData, or maybe just a malloced buffer that you need to pass to some method that expects an NSData, but you don't want to have to duplicate the entire buffer.




Matt
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Is there any compression library for Cocoa?
      • From: Trygve Inda <email@hidden>
References: 
 >Re: Is there any compression library for Cocoa? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Is there any compression library for Cocoa?
  • Next by Date: Updating NSTextView when it gets shorter
  • Previous by thread: Re: Is there any compression library for Cocoa?
  • Next by thread: Re: Is there any compression library for Cocoa?
  • Index(es):
    • Date
    • Thread