• 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 confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSData confusion (From: James Maxwell <email@hidden>)
 >Re: NSData confusion (From: mmalc Crawford <email@hidden>)

  • Prev by Date: q's regarding appropriate use of core data?
  • Next by Date: Re: q's regarding appropriate use of core data?
  • Previous by thread: Re: NSData confusion
  • Next by thread: Re: NSData confusion
  • Index(es):
    • Date
    • Thread