Re: NSData confusion
Re: NSData confusion
- Subject: Re: NSData confusion
- From: James Maxwell <email@hidden>
- Date: Fri, 20 Mar 2009 12:55:48 -0700
Well, I thought I'd seen it that way, but I can't find it now, so I
must have just remembered it incorrectly.
At any rate, the best method has been pointed out to me, and I
understand why it's the way it is...
Any thoughts on accessing a 2D array from an NSMutableData object?
J.
On 20-Mar-09, at 12:46 PM, mmalc Crawford wrote:
On Mar 20, 2009, at 11:33 AM, James Maxwell wrote:
- (void) setFloatData:(NSData *) theData
{
if(m_floatData)
[m_floatData release];
m_floatData = [theData retain];
}
This is how I've seen it done in the Apple docs, but maybe this
isn't the best way to do things...(??)
I would be extremely surprised if you have seen this in the
documentation. If there is an example that shows this, please file
a bug.
All similar examples I've seen follow the patterns illustrated here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAccessorMethods.html
>
mmalc
_______________________________________________
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