• 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
Best Way to Hold Array of CFRefType’s
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best Way to Hold Array of CFRefType’s


  • Subject: Best Way to Hold Array of CFRefType’s
  • From: Dave <email@hidden>
  • Date: Mon, 18 Jan 2016 13:44:56 +0000

Hi,

I have need to keep an Array of CFRefType’s stored in an Object. What is the best way to do this? I can’t use malloc to create a C Array buffer to store them because I don’t know how many there will be to until after I have received them and there are likely to be a lot of them so don’t want to allocate a big buffer unless its needed. The Refs are created using CFCopy so are retained, I release them in the Objects dealloc method.

I was thinking of using NSPointerArray but I’m not sure if this is appropriate for CFRefTypes?

Any suggestions greatly appreciated.

All the Best
Dave


_______________________________________________

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: Best Way to Hold Array of CFRefType’s
      • From: Jens Alfke <email@hidden>
    • Re: Best Way to Hold Array of CFRefType’s
      • From: Clark Cox <email@hidden>
    • Re: Best Way to Hold Array of CFRefType’s
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: setWantsBestResolutionOpenGLSurface and flickering with multiple overlaying windows on retina
  • Next by Date: Re: Best Way to Hold Array of CFRefType’s
  • Previous by thread: setWantsBestResolutionOpenGLSurface and flickering with multiple overlaying windows on retina
  • Next by thread: Re: Best Way to Hold Array of CFRefType’s
  • Index(es):
    • Date
    • Thread