• 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: NSRectArray by reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRectArray by reference


  • Subject: Re: NSRectArray by reference
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 10 Sep 2007 11:59:18 +0100

On 9 Sep 2007, at 22:28, Uli Kusterer wrote:

D) Create your own KDRectArray class that internally uses calloc()/ free() to create/dispose of its memory block, but wraps it all nicely in an Objective C object that everyone can use, including indexed accessors like:

IMHO if you're doing that, it's worth considering using an NSMutableData as the backing store (inside your KDRectArray object), because that strategy will work better with garbage collected code. (The existence of GC is something that's been public for some time, so I don't think I'm revealing anything "secret" by saying that; I'm not sure I can explain *why* using NSMutableData might be better though :-).)


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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: NSRectArray by reference
      • From: Uli Kusterer <email@hidden>
References: 
 >NSRectArray by reference (From: Keith Duncan <email@hidden>)
 >Re: NSRectArray by reference (From: Brian Stern <email@hidden>)
 >Re: NSRectArray by reference (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: determine volume name for folder that does not exist
  • Next by Date: Re: core data app questions - help!
  • Previous by thread: Re: NSRectArray by reference
  • Next by thread: Re: NSRectArray by reference
  • Index(es):
    • Date
    • Thread