Re: Accessing buffers in NSData/NSMutableData under garbage collection
Re: Accessing buffers in NSData/NSMutableData under garbage collection
- Subject: Re: Accessing buffers in NSData/NSMutableData under garbage collection
- From: mmalc crawford <email@hidden>
- Date: Mon, 18 Feb 2008 21:07:17 -0800
On Feb 18, 2008, at 9:00 PM, Adam P Jenkins wrote:
The point of the example was just to show the various positions that
__strong can appear in a declaration, but the fact that the example
uses int* as the pointer type made me think there is a way to
allocate pointers to primitive types that get manage by the GC.
However the GC Programming Guide fails to mention how to do this.
It would be nice if I could do something like this:
__strong int* ptr = GCableMalloc(numBytes);
and ptr would be managed by the GC. Is there an actual function
like GCableMalloc?
<http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcAPI.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