Re: NSRectArray by reference
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