• 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: NSdata, buffer, NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSdata, buffer, NSData


  • Subject: Re: NSdata, buffer, NSData
  • From: mathew <email@hidden>
  • Date: Sat, 19 Apr 2003 15:24:55 -0400

On Saturday, Apr 19, 2003, at 12:22 US/Eastern, Peter Karlsson wrote:
In my open file action I open a file into a NSData object. I then move the bytes to a buffer for some calculating. In my save action I move the bytes from my buffer back into a NSData object but...

I think you ought to be using an NSMutableData.

My buffer is not declared in that part (save action) of my code. Must I make the buffer to some kind of object that I can reach from everywhere? Instance variables? Can someone please help me with this?

Why are you using a second buffer? You could just get the NSMutableData's buffer and calculate on it directly.


mathew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSdata, buffer, NSData (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Prefix for statfs.f_fstypename
  • Next by Date: Re: protecting time-limited demos
  • Previous by thread: NSdata, buffer, NSData
  • Next by thread: Mount Disk Images programmatically with password
  • Index(es):
    • Date
    • Thread