Re: NSdata, buffer, NSData
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.