object wrapper for an opaque pointer
object wrapper for an opaque pointer
- Subject: object wrapper for an opaque pointer
- From: Roland King <email@hidden>
- Date: Mon, 23 Feb 2009 22:06:27 +0800
I want to make an NSArray type container to store some handles in,
they're just void* c pointers. I don't need them managed in any way, I
can deal with removing the handles from the NSArray before deletion
and cleaning them up, I really just want to use an NSArray as a
convenient place to dump spare handles in an object I'm familiar with
and wanted to use a simple syntax like [ [ NSCrapPointerKeeper alloc ]
initWithPointer:<your void* here> ] and stuff it in an NSArray
Is there a simple already-available wrapper for a void* I can use
which doesn't even attempt to do any memory management, I failed to
find one? I looked at NSPointerArray, which might actually do what I
want, but was a little put off by the personality and memory
management options.
Thanks
_______________________________________________
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