Re: Interior pointer accessor list
Re: Interior pointer accessor list
- Subject: Re: Interior pointer accessor list
- From: John Engelhart <email@hidden>
- Date: Wed, 28 Oct 2009 02:25:02 -0400
On Tue, Oct 27, 2009 at 9:43 AM, Dave Keck <email@hidden> wrote:
> Hey list,
>
> While in the process of introducing support for GC in my app, I scoured
> through the 10.5 framework headers for any methods that might return an
> interior pointer. I thought I might share my findings. Here's the command I
> used - perhaps someone could improve upon it:
>
Actually, the only one on that list that I know for sure that's an interior
pointer is:
> ====================
> ./Foundation.framework/Versions/C/Headers/NSData.h
> ====================
> - (const void *)bytes;
>
It's probably a safe assumption that NSMutableData's
> - (void *)mutableBytes;
>
is also an interior pointer as well.
This tends to be a, hmm, "controversial and contentious" topic, so I think
that's all I'm going to say. :)
_______________________________________________
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