• 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
object wrapper for an opaque pointer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: object wrapper for an opaque pointer
      • From: Graham Cox <email@hidden>
  • Prev by Date: NSUserCancelledError and the Dock
  • Next by Date: [Q] Re: NSPersistentStore -addPersistentStoreWithType
  • Previous by thread: NSUserCancelledError and the Dock
  • Next by thread: Re: object wrapper for an opaque pointer
  • Index(es):
    • Date
    • Thread